diff options
Diffstat (limited to 'linden/indra/newview/llfloatermute.cpp')
-rw-r--r-- | linden/indra/newview/llfloatermute.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/llfloatermute.cpp b/linden/indra/newview/llfloatermute.cpp index d519791..f77b8c2 100644 --- a/linden/indra/newview/llfloatermute.cpp +++ b/linden/indra/newview/llfloatermute.cpp | |||
@@ -56,7 +56,7 @@ | |||
56 | // | 56 | // |
57 | // Constants | 57 | // Constants |
58 | // | 58 | // |
59 | const char FLOATER_TITLE[] = "Muted Residents & Objects"; | 59 | const std::string FLOATER_TITLE = "Muted Residents & Objects"; |
60 | const F32 INSTANT_MSG_SIZE = 8.0f; | 60 | const F32 INSTANT_MSG_SIZE = 8.0f; |
61 | const LLColor4 INSTANT_MSG_COLOR(1, 1, 1, 1); | 61 | const LLColor4 INSTANT_MSG_COLOR(1, 1, 1, 1); |
62 | const LLColor4 MUTED_MSG_COLOR(0.5f, 0.5f, 0.5f, 1.f); | 62 | const LLColor4 MUTED_MSG_COLOR(0.5f, 0.5f, 0.5f, 1.f); |
@@ -73,7 +73,7 @@ const S32 HPAD = 4; | |||
73 | class LLFloaterMuteObjectUI : public LLFloater | 73 | class LLFloaterMuteObjectUI : public LLFloater |
74 | { | 74 | { |
75 | public: | 75 | public: |
76 | typedef void(*callback_t)(const LLString&, void*); | 76 | typedef void(*callback_t)(const std::string&, void*); |
77 | 77 | ||
78 | static LLFloaterMuteObjectUI* show(callback_t callback, | 78 | static LLFloaterMuteObjectUI* show(callback_t callback, |
79 | void* userdata); | 79 | void* userdata); |
@@ -89,7 +89,7 @@ private: | |||
89 | static void onBtnOk(void *data); | 89 | static void onBtnOk(void *data); |
90 | static void onBtnCancel(void *data); | 90 | static void onBtnCancel(void *data); |
91 | 91 | ||
92 | void (*mCallback)(const LLString& objectName, | 92 | void (*mCallback)(const std::string& objectName, |
93 | void* userdata); | 93 | void* userdata); |
94 | void* mCallbackUserData; | 94 | void* mCallbackUserData; |
95 | 95 | ||
@@ -99,7 +99,7 @@ private: | |||
99 | LLFloaterMuteObjectUI* LLFloaterMuteObjectUI::sInstance = NULL; | 99 | LLFloaterMuteObjectUI* LLFloaterMuteObjectUI::sInstance = NULL; |
100 | 100 | ||
101 | LLFloaterMuteObjectUI::LLFloaterMuteObjectUI() | 101 | LLFloaterMuteObjectUI::LLFloaterMuteObjectUI() |
102 | : LLFloater("Mute object by name"), | 102 | : LLFloater(std::string("Mute object by name")), |
103 | mCallback(NULL), | 103 | mCallback(NULL), |
104 | mCallbackUserData(NULL) | 104 | mCallbackUserData(NULL) |
105 | { | 105 | { |
@@ -148,7 +148,7 @@ void LLFloaterMuteObjectUI::onBtnOk(void* userdata) | |||
148 | 148 | ||
149 | if (self->mCallback) | 149 | if (self->mCallback) |
150 | { | 150 | { |
151 | const LLString& text = self->childGetValue("object_name").asString(); | 151 | const std::string& text = self->childGetValue("object_name").asString(); |
152 | self->mCallback(text,self->mCallbackUserData); | 152 | self->mCallback(text,self->mCallbackUserData); |
153 | } | 153 | } |
154 | self->close(); | 154 | self->close(); |
@@ -186,7 +186,7 @@ BOOL LLFloaterMuteObjectUI::handleKeyHere(KEY key, MASK mask) | |||
186 | // LLFloaterMute() | 186 | // LLFloaterMute() |
187 | //----------------------------------------------------------------------------- | 187 | //----------------------------------------------------------------------------- |
188 | LLFloaterMute::LLFloaterMute(const LLSD& seed) | 188 | LLFloaterMute::LLFloaterMute(const LLSD& seed) |
189 | : LLFloater("mute floater", "FloaterMuteRect3", FLOATER_TITLE, | 189 | : LLFloater(std::string("mute floater"), std::string("FloaterMuteRect3"), FLOATER_TITLE, |
190 | RESIZE_YES, 220, 140, DRAG_ON_TOP, MINIMIZE_YES, CLOSE_YES) | 190 | RESIZE_YES, 220, 140, DRAG_ON_TOP, MINIMIZE_YES, CLOSE_YES) |
191 | { | 191 | { |
192 | 192 | ||
@@ -234,7 +234,7 @@ void LLFloaterMute::refreshMuteList() | |||
234 | std::vector<LLMute>::iterator it; | 234 | std::vector<LLMute>::iterator it; |
235 | for (it = mutes.begin(); it != mutes.end(); ++it) | 235 | for (it = mutes.begin(); it != mutes.end(); ++it) |
236 | { | 236 | { |
237 | LLString display_name = it->getDisplayName(); | 237 | std::string display_name = it->getDisplayName(); |
238 | mMuteList->addStringUUIDItem(display_name, it->mID); | 238 | mMuteList->addStringUUIDItem(display_name, it->mID); |
239 | } | 239 | } |
240 | 240 | ||
@@ -279,7 +279,7 @@ void LLFloaterMute::onClickRemove(void *data) | |||
279 | { | 279 | { |
280 | LLFloaterMute* floater = (LLFloaterMute *)data; | 280 | LLFloaterMute* floater = (LLFloaterMute *)data; |
281 | 281 | ||
282 | LLString name = floater->mMuteList->getSelectedItemLabel(); | 282 | std::string name = floater->mMuteList->getSelectedItemLabel(); |
283 | LLUUID id = floater->mMuteList->getStringUUIDSelectedItem(); | 283 | LLUUID id = floater->mMuteList->getStringUUIDSelectedItem(); |
284 | LLMute mute(id); | 284 | LLMute mute(id); |
285 | mute.setFromDisplayName(name); | 285 | mute.setFromDisplayName(name); |
@@ -340,7 +340,7 @@ void LLFloaterMute::onClickMuteByName(void* data) | |||
340 | floaterp->addDependentFloater(picker); | 340 | floaterp->addDependentFloater(picker); |
341 | } | 341 | } |
342 | 342 | ||
343 | void LLFloaterMute::callbackMuteByName(const LLString& text, void* data) | 343 | void LLFloaterMute::callbackMuteByName(const std::string& text, void* data) |
344 | { | 344 | { |
345 | if (text.empty()) return; | 345 | if (text.empty()) return; |
346 | 346 | ||