aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAleric Inglewood2010-10-30 20:29:37 +0200
committerMcCabe Maxsted2010-11-02 16:49:49 -0700
commit7e6a6ef92f15f4613acd6dcae9eab78f37866376 (patch)
tree82ebdf47b22a7d30bfac59036a2b305f3d70b70f
parentDelete piece of code that is redundant. (diff)
downloadmeta-impy-7e6a6ef92f15f4613acd6dcae9eab78f37866376.zip
meta-impy-7e6a6ef92f15f4613acd6dcae9eab78f37866376.tar.gz
meta-impy-7e6a6ef92f15f4613acd6dcae9eab78f37866376.tar.bz2
meta-impy-7e6a6ef92f15f4613acd6dcae9eab78f37866376.tar.xz
Make LLStringUtilBase<T>::null a constant.
-rw-r--r--linden/indra/llcommon/llstring.h4
-rw-r--r--linden/indra/newview/llnamelistctrl.cpp2
-rw-r--r--linden/indra/newview/llnamelistctrl.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llcommon/llstring.h b/linden/indra/llcommon/llstring.h
index 3c6cd43..bab89b1 100644
--- a/linden/indra/llcommon/llstring.h
+++ b/linden/indra/llcommon/llstring.h
@@ -209,7 +209,7 @@ public:
209 ///////////////////////////////////////////////////////////////////////////////////////// 209 /////////////////////////////////////////////////////////////////////////////////////////
210 // Static Utility functions that operate on std::strings 210 // Static Utility functions that operate on std::strings
211 211
212 static std::basic_string<T> null; 212 static std::basic_string<T> const null;
213 213
214 typedef std::map<LLFormatMapString, LLFormatMapString> format_map_t; 214 typedef std::map<LLFormatMapString, LLFormatMapString> format_map_t;
215 static S32 format(std::basic_string<T>& s, const format_map_t& fmt_map); 215 static S32 format(std::basic_string<T>& s, const format_map_t& fmt_map);
@@ -299,7 +299,7 @@ public:
299 299
300}; 300};
301 301
302template<class T> std::basic_string<T> LLStringUtilBase<T>::null; 302template<class T> std::basic_string<T> const LLStringUtilBase<T>::null;
303 303
304typedef LLStringUtilBase<char> LLStringUtil; 304typedef LLStringUtilBase<char> LLStringUtil;
305typedef LLStringUtilBase<llwchar> LLWStringUtil; 305typedef LLStringUtilBase<llwchar> LLWStringUtil;
diff --git a/linden/indra/newview/llnamelistctrl.cpp b/linden/indra/newview/llnamelistctrl.cpp
index 453cf7f..e445df5 100644
--- a/linden/indra/newview/llnamelistctrl.cpp
+++ b/linden/indra/newview/llnamelistctrl.cpp
@@ -72,7 +72,7 @@ LLNameListCtrl::~LLNameListCtrl()
72 72
73// public 73// public
74BOOL LLNameListCtrl::addNameItem(const LLUUID& agent_id, EAddPosition pos, 74BOOL LLNameListCtrl::addNameItem(const LLUUID& agent_id, EAddPosition pos,
75 BOOL enabled, std::string& suffix) 75 BOOL enabled, const std::string& suffix)
76{ 76{
77 //llinfos << "LLNameListCtrl::addNameItem " << agent_id << llendl; 77 //llinfos << "LLNameListCtrl::addNameItem " << agent_id << llendl;
78 78
diff --git a/linden/indra/newview/llnamelistctrl.h b/linden/indra/newview/llnamelistctrl.h
index 1b7795d..beb4ede 100644
--- a/linden/indra/newview/llnamelistctrl.h
+++ b/linden/indra/newview/llnamelistctrl.h
@@ -58,7 +58,7 @@ public:
58 // Add a user to the list by name. It will be added, the name 58 // Add a user to the list by name. It will be added, the name
59 // requested from the cache, and updated as necessary. 59 // requested from the cache, and updated as necessary.
60 BOOL addNameItem(const LLUUID& agent_id, EAddPosition pos = ADD_BOTTOM, 60 BOOL addNameItem(const LLUUID& agent_id, EAddPosition pos = ADD_BOTTOM,
61 BOOL enabled = TRUE, std::string& suffix = LLStringUtil::null); 61 BOOL enabled = TRUE, const std::string& suffix = LLStringUtil::null);
62 BOOL addNameItem(LLScrollListItem* item, EAddPosition pos = ADD_BOTTOM); 62 BOOL addNameItem(LLScrollListItem* item, EAddPosition pos = ADD_BOTTOM);
63 63
64 virtual LLScrollListItem* addElement(const LLSD& value, EAddPosition pos = ADD_BOTTOM, void* userdata = NULL); 64 virtual LLScrollListItem* addElement(const LLSD& value, EAddPosition pos = ADD_BOTTOM, void* userdata = NULL);