diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llfloaterclothing.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterclothing.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloaterclothing.cpp b/linden/indra/newview/llfloaterclothing.cpp index fd54fcf..9d4ac6f 100644 --- a/linden/indra/newview/llfloaterclothing.cpp +++ b/linden/indra/newview/llfloaterclothing.cpp | |||
@@ -48,7 +48,7 @@ | |||
48 | #include "llvoavatar.h" | 48 | #include "llvoavatar.h" |
49 | #include "llviewercontrol.h" | 49 | #include "llviewercontrol.h" |
50 | 50 | ||
51 | const LLString LOADING_STRING("Loading..."); | 51 | const std::string LOADING_STRING("Loading..."); |
52 | 52 | ||
53 | // static | 53 | // static |
54 | LLFloaterClothing* LLFloaterClothing::sInstance = NULL; | 54 | LLFloaterClothing* LLFloaterClothing::sInstance = NULL; |
@@ -70,7 +70,7 @@ public: | |||
70 | // LLFloaterClothing | 70 | // LLFloaterClothing |
71 | //--------------------------------------------------------------------------- | 71 | //--------------------------------------------------------------------------- |
72 | LLFloaterClothing::LLFloaterClothing() | 72 | LLFloaterClothing::LLFloaterClothing() |
73 | : LLFloater("floater_clothing", "FloaterClothingRect", ""), | 73 | : LLFloater(std::string("floater_clothing"), std::string("FloaterClothingRect"), LLStringUtil::null), |
74 | mSelectedID(), | 74 | mSelectedID(), |
75 | mAllowSelection(FALSE) | 75 | mAllowSelection(FALSE) |
76 | { | 76 | { |
@@ -272,15 +272,15 @@ void LLFloaterClothing::buildClothingList() | |||
272 | item_is_multi = TRUE; | 272 | item_is_multi = TRUE; |
273 | } | 273 | } |
274 | 274 | ||
275 | LLString icon_name = get_item_icon_name(item->getType(), | 275 | std::string icon_name = get_item_icon_name(item->getType(), |
276 | item->getInventoryType(), | 276 | item->getInventoryType(), |
277 | item->getFlags(), item_is_multi); // flags = wearable type | 277 | item->getFlags(), item_is_multi); // flags = wearable type |
278 | row["columns"][0]["column"] = "icon"; | 278 | row["columns"][0]["column"] = "icon"; |
279 | row["columns"][0]["type"] = "icon"; | 279 | row["columns"][0]["type"] = "icon"; |
280 | row["columns"][0]["value"] = icon_name; | 280 | row["columns"][0]["value"] = icon_name; |
281 | 281 | ||
282 | LLString text = item->getName(); | 282 | std::string text = item->getName(); |
283 | LLString style = "NORMAL"; | 283 | std::string style = "NORMAL"; |
284 | if( gAgent.isWearingItem( item->getUUID() ) ) | 284 | if( gAgent.isWearingItem( item->getUUID() ) ) |
285 | { | 285 | { |
286 | text.append(" (worn)"); | 286 | text.append(" (worn)"); |
@@ -294,7 +294,7 @@ void LLFloaterClothing::buildClothingList() | |||
294 | // hidden column for sorting | 294 | // hidden column for sorting |
295 | U32 flags = item->getFlags(); // flags = wearable type | 295 | U32 flags = item->getFlags(); // flags = wearable type |
296 | enum EWearableType wearable_type = (enum EWearableType)flags; | 296 | enum EWearableType wearable_type = (enum EWearableType)flags; |
297 | const char* wearable_label = LLWearable::typeToTypeLabel(wearable_type); | 297 | const std::string& wearable_label = LLWearable::typeToTypeLabel(wearable_type); |
298 | //line->addColumn(wearable_label, FONT, -1); // invisible | 298 | //line->addColumn(wearable_label, FONT, -1); // invisible |
299 | row["columns"][2]["column"] = "sort"; | 299 | row["columns"][2]["column"] = "sort"; |
300 | row["columns"][2]["value"] = wearable_label; | 300 | row["columns"][2]["value"] = wearable_label; |
@@ -315,7 +315,7 @@ void LLFloaterClothing::buildClothingList() | |||
315 | else | 315 | else |
316 | { | 316 | { |
317 | // Weird case, we're done loading but have no clothing | 317 | // Weird case, we're done loading but have no clothing |
318 | list->addCommentText("No clothing found."); | 318 | list->addCommentText(std::string("No clothing found.")); // *TODO: Translate |
319 | mAllowSelection = FALSE; | 319 | mAllowSelection = FALSE; |
320 | } | 320 | } |
321 | } | 321 | } |