aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatersellland.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llfloatersellland.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-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 'linden/indra/newview/llfloatersellland.cpp')
-rw-r--r--linden/indra/newview/llfloatersellland.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/llfloatersellland.cpp b/linden/indra/newview/llfloatersellland.cpp
index 90e4dd3..c24818e 100644
--- a/linden/indra/newview/llfloatersellland.cpp
+++ b/linden/indra/newview/llfloatersellland.cpp
@@ -138,7 +138,7 @@ LLFloaterSellLandUI* LLFloaterSellLandUI::soleInstance(bool createIfNeeded)
138} 138}
139 139
140LLFloaterSellLandUI::LLFloaterSellLandUI() 140LLFloaterSellLandUI::LLFloaterSellLandUI()
141: LLFloater("Sell Land"), 141: LLFloater(std::string("Sell Land")),
142 mRegion(0) 142 mRegion(0)
143{ 143{
144} 144}
@@ -243,7 +243,7 @@ void LLFloaterSellLandUI::updateParcelInfo()
243 243
244 if(mSellToBuyer) 244 if(mSellToBuyer)
245 { 245 {
246 LLString name; 246 std::string name;
247 gCacheName->getFullName(mAuthorizedBuyer, name); 247 gCacheName->getFullName(mAuthorizedBuyer, name);
248 childSetText("sell_to_agent", name); 248 childSetText("sell_to_agent", name);
249 } 249 }
@@ -251,12 +251,12 @@ void LLFloaterSellLandUI::updateParcelInfo()
251 251
252void LLFloaterSellLandUI::setBadge(const char* id, Badge badge) 252void LLFloaterSellLandUI::setBadge(const char* id, Badge badge)
253{ 253{
254 static LLString badgeOK("badge_ok.j2c"); 254 static std::string badgeOK("badge_ok.j2c");
255 static LLString badgeNote("badge_note.j2c"); 255 static std::string badgeNote("badge_note.j2c");
256 static LLString badgeWarn("badge_warn.j2c"); 256 static std::string badgeWarn("badge_warn.j2c");
257 static LLString badgeError("badge_error.j2c"); 257 static std::string badgeError("badge_error.j2c");
258 258
259 LLString badgeName; 259 std::string badgeName;
260 switch (badge) 260 switch (badge)
261 { 261 {
262 default: 262 default:
@@ -283,7 +283,7 @@ void LLFloaterSellLandUI::refreshUI()
283 childSetText("info_parcel", parcelp->getName()); 283 childSetText("info_parcel", parcelp->getName());
284 childSetTextArg("info_size", "[AREA]", llformat("%d", mParcelActualArea)); 284 childSetTextArg("info_size", "[AREA]", llformat("%d", mParcelActualArea));
285 285
286 LLString price_str = childGetValue("price").asString(); 286 std::string price_str = childGetValue("price").asString();
287 bool valid_price = false; 287 bool valid_price = false;
288 valid_price = (price_str != "") && LLLineEditor::prevalidateNonNegativeS32(utf8str_to_wstring(price_str)); 288 valid_price = (price_str != "") && LLLineEditor::prevalidateNonNegativeS32(utf8str_to_wstring(price_str));
289 289
@@ -331,7 +331,7 @@ void LLFloaterSellLandUI::refreshUI()
331 } 331 }
332 332
333 // Must select Sell To: Anybody, or User (with a specified username) 333 // Must select Sell To: Anybody, or User (with a specified username)
334 LLString sell_to = childGetValue("sell_to").asString(); 334 std::string sell_to = childGetValue("sell_to").asString();
335 bool valid_sell_to = "select" != sell_to && 335 bool valid_sell_to = "select" != sell_to &&
336 ("user" != sell_to || mAuthorizedBuyer.notNull()); 336 ("user" != sell_to || mAuthorizedBuyer.notNull());
337 337
@@ -370,7 +370,7 @@ void LLFloaterSellLandUI::onChangeValue(LLUICtrl *ctrl, void *userdata)
370{ 370{
371 LLFloaterSellLandUI *self = (LLFloaterSellLandUI *)userdata; 371 LLFloaterSellLandUI *self = (LLFloaterSellLandUI *)userdata;
372 372
373 LLString sell_to = self->childGetValue("sell_to").asString(); 373 std::string sell_to = self->childGetValue("sell_to").asString();
374 374
375 if (sell_to == "user") 375 if (sell_to == "user")
376 { 376 {
@@ -481,7 +481,7 @@ void LLFloaterSellLandUI::doSellLand(void *userdata)
481 return; 481 return;
482 } 482 }
483 483
484 LLStringBase<char>::format_map_t args; 484 LLStringUtil::format_map_t args;
485 args["[LAND_SIZE]"] = llformat("%d",area); 485 args["[LAND_SIZE]"] = llformat("%d",area);
486 args["[SALE_PRICE]"] = llformat("%d",sale_price); 486 args["[SALE_PRICE]"] = llformat("%d",sale_price);
487 args["[NAME]"] = authorizedBuyerName; 487 args["[NAME]"] = authorizedBuyerName;