diff options
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llenvironment.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp index d9870140ac..26e025773a 100644 --- a/indra/newview/llenvironment.cpp +++ b/indra/newview/llenvironment.cpp @@ -331,23 +331,23 @@ namespace // typename SETTINGT::ptr_t buildClone() const override; - typename SETTINGT::ptr_t getSource() const { return mSource; } - void setSource(const typename SETTINGT::ptr_t &source) { mSource = source; setDirtyFlag(true); } + typename SETTINGT::ptr_t getSource() const { return this->mSource; } + void setSource(const typename SETTINGT::ptr_t &source) { this->mSource = source; this->setDirtyFlag(true); } void injectSetting(const std::string keyname, LLSD value, LLUUID experience_id, F32Seconds transition) { if (transition > 0.1) { - Injection::ptr_t injection = std::make_shared<Injection>(transition, keyname, value, true, experience_id); + typename Injection::ptr_t injection = std::make_shared<Injection>(transition, keyname, value, true, experience_id); mInjections.push_back(injection); - std::stable_sort(mInjections.begin(), mInjections.end(), [](const Injection::ptr_t &a, const Injection::ptr_t &b) { return a->mTimeRemaining < b->mTimeRemaining; }); + std::stable_sort(mInjections.begin(), mInjections.end(), [](const typename Injection::ptr_t &a, const typename Injection::ptr_t &b) { return a->mTimeRemaining < b->mTimeRemaining; }); } else { mOverrideValues[keyname] = value; mOverrideExps[keyname] = experience_id; - setDirtyFlag(true); + this->setDirtyFlag(true); } } @@ -419,7 +419,7 @@ namespace { static LLFrameTimer timer; - LLSettingsBase::Seconds delta(timer.getElapsedTimeAndResetF32()); + typename LLSettingsBase::Seconds delta(timer.getElapsedTimeAndResetF32()); resetSpecial(); @@ -428,23 +428,23 @@ namespace mSource->updateSettings(); } - mSettings = mSource->getSettings(); + this->mSettings = mSource->getSettings(); for (auto ito = mOverrideValues.beginMap(); ito != mOverrideValues.endMap(); ++ito) { - mSettings[(*ito).first] = (*ito).second; + this->mSettings[(*ito).first] = (*ito).second; } - const stringset_t &slerps = getSlerpKeys(); - const stringset_t &skips = getSkipInterpolateKeys(); - const stringset_t &specials = getSpecialKeys(); + const LLSettingsBase::stringset_t &slerps = this->getSlerpKeys(); + const LLSettingsBase::stringset_t &skips = this->getSkipInterpolateKeys(); + const LLSettingsBase::stringset_t &specials = this->getSpecialKeys(); - injections_t::iterator it; + typename injections_t::iterator it; for (it = mInjections.begin(); it != mInjections.end(); ++it) { std::string key_name = (*it)->mKeyName; - LLSD value = mSettings[key_name]; + LLSD value = this->mSettings[key_name]; LLSD target = (*it)->mValue; if ((*it)->mFirstTime) @@ -452,7 +452,7 @@ namespace else (*it)->mTimeRemaining -= delta; - BlendFactor mix = 1.0f - ((*it)->mTimeRemaining.value() / (*it)->mTransition.value()); + typename LLSettingsBase::BlendFactor mix = 1.0f - ((*it)->mTimeRemaining.value() / (*it)->mTransition.value()); if (mix >= 1.0) { @@ -461,11 +461,11 @@ namespace LL_WARNS("LAPRAS") << "Done blending '" << key_name << "' after " << (*it)->mTransition.value() - (*it)->mTimeRemaining.value() << " value now=" << target << LL_ENDL; mOverrideValues[key_name] = target; mOverrideExps[key_name] = (*it)->mExperience; - mSettings[key_name] = target; + this->mSettings[key_name] = target; } else { - mSettings.erase(key_name); + this->mSettings.erase(key_name); } } else if (specials.find(key_name) != specials.end()) @@ -474,13 +474,13 @@ namespace } else if (skips.find(key_name) == skips.end()) { - mSettings[key_name] = interpolateSDValue(key_name, value, target, getParameterMap(), mix, slerps); + this->mSettings[key_name] = this->interpolateSDValue(key_name, value, target, this->getParameterMap(), mix, slerps); // LL_WARNS("LAPRAS") << "...blending '" << key_name << "' by " << mix << "% now=" << mSettings[key_name] << LL_ENDL; } } it = mInjections.begin(); - it = std::find_if(mInjections.begin(), mInjections.end(), [](const Injection::ptr_t &a) { return a->mTimeRemaining > 0.0f; }); + it = std::find_if(mInjections.begin(), mInjections.end(), [](const typename Injection::ptr_t &a) { return a->mTimeRemaining > 0.0f; }); if (it != mInjections.begin()) { @@ -491,12 +491,12 @@ namespace SETTINGT::updateSettings(); if (!mInjections.empty()) - setDirtyFlag(true); + this->setDirtyFlag(true); } LLSettingsBase::stringset_t getSpecialKeys() const; void resetSpecial(); - void updateSpecial(typename const Injection::ptr_t &injection, LLSettingsBase::BlendFactor mix); + void updateSpecial(const typename Injection::ptr_t &injection, typename LLSettingsBase::BlendFactor mix); private: typedef std::map<std::string, LLUUID> key_to_expid_t; @@ -511,7 +511,7 @@ namespace template<> LLSettingsBase::stringset_t LLSettingsInjected<LLSettingsVOSky>::getSpecialKeys() const { - static stringset_t specialSet; + static LLSettingsBase::stringset_t specialSet; if (specialSet.empty()) { @@ -559,7 +559,7 @@ namespace } template<> - void LLSettingsInjected<LLSettingsVOSky>::updateSpecial(const LLSettingsInjected<LLSettingsVOSky>::Injection::ptr_t &injection, LLSettingsBase::BlendFactor mix) + void LLSettingsInjected<LLSettingsVOSky>::updateSpecial(const typename LLSettingsInjected<LLSettingsVOSky>::Injection::ptr_t &injection, typename LLSettingsBase::BlendFactor mix) { if (injection->mKeyName == SETTING_SUN_TEXTUREID) { @@ -594,7 +594,7 @@ namespace } template<> - void LLSettingsInjected<LLSettingsVOWater>::updateSpecial(const LLSettingsInjected<LLSettingsVOWater>::Injection::ptr_t &injection, LLSettingsBase::BlendFactor mix) + void LLSettingsInjected<LLSettingsVOWater>::updateSpecial(const typename LLSettingsInjected<LLSettingsVOWater>::Injection::ptr_t &injection, typename LLSettingsBase::BlendFactor mix) { if (injection->mKeyName == SETTING_NORMAL_MAP) { |