summaryrefslogtreecommitdiff
path: root/indra/newview/llmutelist.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llmutelist.h')
-rw-r--r--indra/newview/llmutelist.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llmutelist.h b/indra/newview/llmutelist.h
index 413a2933b3..dc69e98286 100644
--- a/indra/newview/llmutelist.h
+++ b/indra/newview/llmutelist.h
@@ -79,12 +79,17 @@ public:
U32 mFlags; // flags pertaining to this mute entry
};
-class LLMuteList
+class LLMuteList : public LLSingleton<LLMuteList>
{
public:
LLMuteList();
~LLMuteList();
+ // Implemented locally so that we can perform some delayed initialization.
+ // Callers should be careful to call this one and not LLSingleton<LLMuteList>::getInstance()
+ // which would circumvent that mechanism. -MG
+ static LLMuteList* getInstance();
+
void addObserver(LLMuteListObserver* observer);
void removeObserver(LLMuteListObserver* observer);
@@ -170,6 +175,5 @@ public:
virtual void onChange() = 0;
};
-extern LLMuteList *gMuteListp;
#endif //LL_MUTELIST_H