diff --git a/indra/llxml/llcontrol.h b/indra/llxml/llcontrol.h index 18861cb23..2816918a8 100644 --- a/indra/llxml/llcontrol.h +++ b/indra/llxml/llcontrol.h @@ -99,8 +99,10 @@ typedef enum e_control_type class LLControlVariable : public LLRefCount { - friend class LLControlGroup; + LOG_CLASS(LLControlVariable); + friend class LLControlGroup; + public: typedef boost::signals2::signal validate_signal_t; typedef boost::signals2::signal commit_signal_t; @@ -208,6 +210,7 @@ T convert_from_llsd(const LLSD& sd, eControlType type, const std::string& contro //const U32 STRING_CACHE_SIZE = 10000; class LLControlGroup : public LLInstanceTracker { + LOG_CLASS(LLControlGroup); protected: typedef std::map ctrl_name_table_t; ctrl_name_table_t mNameTable; @@ -283,6 +286,7 @@ public: else { llwarns << "Control " << name << " not found." << llendl; + return T(); } return convert_from_llsd(value, type, name); } @@ -313,7 +317,7 @@ public: } else { - llerrs << "Invalid control " << name << llendl; + llwarns << "Invalid control " << name << llendl; } }