diff options
author | Merov Linden <merov@lindenlab.com> | 2012-08-27 09:50:23 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2012-08-27 09:50:23 -0700 |
commit | 99e0c35c40354a3ad4d9e6e0d92a73c15c844441 (patch) | |
tree | a8f2f50548185f72893256258f1d28dd82bd5efb /indra/newview/llviewermessage.cpp | |
parent | fd62242dd6e5fa464db07e0b8ebf3ab54a6067a2 (diff) | |
parent | 0804ecb3551514d3321dfd4e3b17c3dab9693444 (diff) |
Merge pull from richard/viewer-chui
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rwxr-xr-x | indra/newview/llviewermessage.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index b20b86a582..9abd269f0f 100755 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -2297,12 +2297,10 @@ void god_message_name_cb(const LLAvatarName& av_name, LLChat chat, std::string m // Treat like a system message and put in chat history. chat.mText = av_name.getCompleteName() + ": " + message; - LLNearbyChat* nearby_chat = LLNearbyChat::getInstance(); - if(nearby_chat) + if (LLNearbyChat::instanceExists()) { - nearby_chat->addMessage(chat); + LLNearbyChat::instance().addMessage(chat); } - } void process_improved_im(LLMessageSystem *msg, void **user_data) @@ -2897,8 +2895,7 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) // Note: lie to Nearby Chat, pretending that this is NOT an IM, because // IMs from obejcts don't open IM sessions. - LLNearbyChat* nearby_chat = LLNearbyChat::getInstance(); - if(!chat_from_system && nearby_chat) + if(!chat_from_system && LLNearbyChat::instanceExists()) { chat.mOwnerID = from_id; LLSD args; |