From 2ff7f8a772e07335e4ab6788410858667189059e Mon Sep 17 00:00:00 2001 From: Richard Nelson Date: Thu, 15 Oct 2009 21:35:30 +0000 Subject: fix for gcc build --- indra/llxuixml/llinitparam.cpp | 2 +- indra/llxuixml/llinitparam.h | 6 +++--- indra/llxuixml/lluicolor.cpp | 2 +- indra/llxuixml/lluicolor.h | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'indra/llxuixml') diff --git a/indra/llxuixml/llinitparam.cpp b/indra/llxuixml/llinitparam.cpp index 1abd411f37..6dd1f93baf 100644 --- a/indra/llxuixml/llinitparam.cpp +++ b/indra/llxuixml/llinitparam.cpp @@ -500,7 +500,7 @@ namespace LLInitParam return param_changed; } - bool ParamCompare::equals(const LLSD &a, const LLSD &b) + bool ParamCompare::equals(const LLSD &a, const LLSD &b) { return false; } diff --git a/indra/llxuixml/llinitparam.h b/indra/llxuixml/llinitparam.h index 193d8c1f64..b280dfdf63 100644 --- a/indra/llxuixml/llinitparam.h +++ b/indra/llxuixml/llinitparam.h @@ -46,7 +46,7 @@ namespace LLInitParam { - template ::type > + template ::value > struct ParamCompare { static bool equals(const T &a, const T &b) @@ -57,7 +57,7 @@ namespace LLInitParam // boost function types are not comparable template - struct ParamCompare + struct ParamCompare { static bool equals(const T&a, const T &b) { @@ -1818,7 +1818,7 @@ namespace LLInitParam }; template<> - struct ParamCompare + struct ParamCompare { static bool equals(const LLSD &a, const LLSD &b); }; diff --git a/indra/llxuixml/lluicolor.cpp b/indra/llxuixml/lluicolor.cpp index 0065edb309..856c05cf4a 100644 --- a/indra/llxuixml/lluicolor.cpp +++ b/indra/llxuixml/lluicolor.cpp @@ -58,7 +58,7 @@ bool LLUIColor::isReference() const namespace LLInitParam { // used to detect equivalence with default values on export - bool ParamCompare::equals(const LLUIColor &a, const LLUIColor &b) + bool ParamCompare::equals(const LLUIColor &a, const LLUIColor &b) { // do not detect value equivalence, treat pointers to colors as distinct from color values return (a.mColorPtr == NULL && b.mColorPtr == NULL ? a.mColor == b.mColor : a.mColorPtr == b.mColorPtr); diff --git a/indra/llxuixml/lluicolor.h b/indra/llxuixml/lluicolor.h index aff81a695d..fb9c6b9161 100644 --- a/indra/llxuixml/lluicolor.h +++ b/indra/llxuixml/lluicolor.h @@ -15,7 +15,7 @@ namespace LLInitParam { - template + template struct ParamCompare; } @@ -37,7 +37,7 @@ public: bool isReference() const; private: - friend struct LLInitParam::ParamCompare; + friend struct LLInitParam::ParamCompare; const LLColor4* mColorPtr; LLColor4 mColor; @@ -46,7 +46,7 @@ private: namespace LLInitParam { template<> - struct ParamCompare + struct ParamCompare { static bool equals(const class LLUIColor& a, const class LLUIColor& b); }; -- cgit v1.2.3