From 1cbe0f68c59554e197158c9000dca617cb028056 Mon Sep 17 00:00:00 2001 From: Richard Linden Date: Sun, 15 Apr 2012 23:49:26 -0700 Subject: another round of gcc fixes --- indra/llxuixml/llinitparam.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'indra/llxuixml') diff --git a/indra/llxuixml/llinitparam.h b/indra/llxuixml/llinitparam.h index fdcdf81294..9135b200ab 100644 --- a/indra/llxuixml/llinitparam.h +++ b/indra/llxuixml/llinitparam.h @@ -360,6 +360,7 @@ namespace LLInitParam { public: typedef TypeValuesHelper self_t; + typedef TypeValuesHelper base_t; typedef std::string value_t; typedef std::string name_t; typedef self_t type_value_t; @@ -375,25 +376,25 @@ namespace LLInitParam self_t& operator =(const std::string& name) { - if (getValueFromName(name, ParamValue::getValue())) + if (base_t::getValueFromName(name, ParamValue::getValue())) { - setValueName(name); + base_t::setValueName(name); } else { - setValue(name); + ParamValue::setValue(name); } return *this; } operator const value_t&() const { - return ParamValue::getValue(); + return ParamValue::getValue(); } const value_t& operator()() const { - return ParamValue::getValue(); + return ParamValue::getValue(); } }; @@ -1778,7 +1779,7 @@ namespace LLInitParam // // Nested classes for declaring parameters // - template ::type_value_t > + template ::type_value_t > class Optional : public TypedParam { typedef TypedParam super_t; @@ -1808,7 +1809,7 @@ namespace LLInitParam } }; - template ::type_value_t > + template ::type_value_t > class Mandatory : public TypedParam { typedef TypedParam super_t; @@ -1845,7 +1846,7 @@ namespace LLInitParam }; - template ::type_value_t > + template ::type_value_t > class Multiple : public TypedParam { typedef TypedParam super_t; -- cgit v1.2.3