[FIXED] GCC and Clang warnings and error
parent
e43634d8c3
commit
fc66d08416
|
|
@ -89,12 +89,6 @@ protected:
|
|||
//
|
||||
//
|
||||
|
||||
enum class LLTweenType
|
||||
{
|
||||
None,
|
||||
Lerp,
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
class LLTweenableValue
|
||||
{
|
||||
|
|
@ -118,13 +112,13 @@ template<typename T>
|
|||
class LLTweenableValueLerp : public LLTweenableValue<T>
|
||||
{
|
||||
public:
|
||||
LLTweenableValueLerp(const T& defaultValue) : LLTweenableValue(defaultValue) {}
|
||||
LLTweenableValueLerp(const T& defaultValue) : LLTweenableValue<T>(defaultValue) {}
|
||||
|
||||
T get() override;
|
||||
void start(const T& endValue, double duration) override
|
||||
{
|
||||
m_StartValue = get();
|
||||
m_CurValue = boost::none;
|
||||
this->m_CurValue = boost::none;
|
||||
m_EndValue = endValue;
|
||||
|
||||
m_StartTime = LLTimer::getElapsedSeconds();
|
||||
|
|
|
|||
|
|
@ -433,6 +433,8 @@ void RlvSphereEffect::run(const LLVisualEffectParams* pParams)
|
|||
gRlvSphereProgram.uniform2f(LLShaderMgr::RLV_EFFECT_PARAM5, 0.f, 1.f);
|
||||
renderPass(&gRlvSphereProgram, pShaderParams);
|
||||
break;
|
||||
default:
|
||||
llassert(true);
|
||||
}
|
||||
|
||||
gRlvSphereProgram.unbind();
|
||||
|
|
|
|||
|
|
@ -412,7 +412,7 @@ const RlvBehaviourInfo* RlvBehaviourDictionary::getBehaviourInfo(ERlvBehaviour e
|
|||
{
|
||||
const RlvBehaviourInfo* pBhvrInfo = nullptr;
|
||||
for (auto itBhvrLower = m_Bhvr2InfoMap.lower_bound(eBhvr), itBhvrUpper = m_Bhvr2InfoMap.upper_bound(eBhvr);
|
||||
std::find_if(itBhvrLower, itBhvrUpper, [eBhvr, eParamType](const rlv_bhvr2info_map_t::value_type& bhvrEntry) { return bhvrEntry.second->getParamTypeMask() == eParamType; }) != itBhvrUpper;
|
||||
std::find_if(itBhvrLower, itBhvrUpper, [eParamType](const rlv_bhvr2info_map_t::value_type& bhvrEntry) { return bhvrEntry.second->getParamTypeMask() == eParamType; }) != itBhvrUpper;
|
||||
++itBhvrLower)
|
||||
{
|
||||
if (pBhvrInfo)
|
||||
|
|
|
|||
Loading…
Reference in New Issue