diff options
author | Todd Stinson <stinson@lindenlab.com> | 2012-08-23 15:11:10 -0700 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2012-08-23 15:11:10 -0700 |
commit | 6d84272d38a4d09819ae03f4d967195ec3bd660b (patch) | |
tree | f020454f9144a769081e44ee7cd4acae7042394b /indra/llcommon/llstat.h | |
parent | ff95dd4a43fd888a9b7353abcbfa701e4844a3a5 (diff) | |
parent | fcfc686d9c4125c7bf35fcc97cb40b18dd9a4fc1 (diff) |
Pull and merge from ssh://hg@bitbucket.org/lindenlab/viewer-beta.
Diffstat (limited to 'indra/llcommon/llstat.h')
-rw-r--r-- | indra/llcommon/llstat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/llstat.h b/indra/llcommon/llstat.h index b877432e86..1a8404cc07 100644 --- a/indra/llcommon/llstat.h +++ b/indra/llcommon/llstat.h @@ -263,9 +263,9 @@ class LL_COMMON_API LLStat { private: typedef std::multimap<std::string, LLStat*> stat_map_t; - static stat_map_t sStatList; void init(); + static stat_map_t& getStatList(); public: LLStat(U32 num_bins = 32, BOOL use_frame_timer = FALSE); @@ -342,8 +342,8 @@ public: static LLStat* getStat(const std::string& name) { // return the first stat that matches 'name' - stat_map_t::iterator iter = sStatList.find(name); - if (iter != sStatList.end()) + stat_map_t::iterator iter = getStatList().find(name); + if (iter != getStatList().end()) return iter->second; else return NULL; |