aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterauction.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/llfloaterauction.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/llfloaterauction.cpp')
-rw-r--r--linden/indra/newview/llfloaterauction.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/newview/llfloaterauction.cpp b/linden/indra/newview/llfloaterauction.cpp
index 4a40abb..80c43ab 100644
--- a/linden/indra/newview/llfloaterauction.cpp
+++ b/linden/indra/newview/llfloaterauction.cpp
@@ -72,7 +72,7 @@ LLFloaterAuction* LLFloaterAuction::sInstance = NULL;
72 72
73// Default constructor 73// Default constructor
74LLFloaterAuction::LLFloaterAuction() : 74LLFloaterAuction::LLFloaterAuction() :
75 LLFloater("floater_auction"), 75 LLFloater(std::string("floater_auction")),
76 mParcelID(-1) 76 mParcelID(-1)
77{ 77{
78 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_auction.xml"); 78 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_auction.xml");
@@ -128,7 +128,7 @@ void LLFloaterAuction::initialize()
128 } 128 }
129 else 129 else
130 { 130 {
131 childSetText("parcel_text", LLString::null); 131 childSetText("parcel_text", LLStringUtil::null);
132 } 132 }
133 mParcelID = -1; 133 mParcelID = -1;
134 childSetEnabled("snapshot_btn", false); 134 childSetEnabled("snapshot_btn", false);
@@ -224,14 +224,14 @@ void LLFloaterAuction::onClickOK(void* data)
224 LLSD parcel_name = self->childGetValue("parcel_text"); 224 LLSD parcel_name = self->childGetValue("parcel_text");
225 225
226 // create the asset 226 // create the asset
227 LLString* name = new LLString(parcel_name.asString()); 227 std::string* name = new std::string(parcel_name.asString());
228 gAssetStorage->storeAssetData(self->mTransactionID, LLAssetType::AT_IMAGE_TGA, 228 gAssetStorage->storeAssetData(self->mTransactionID, LLAssetType::AT_IMAGE_TGA,
229 &auction_tga_upload_done, 229 &auction_tga_upload_done,
230 (void*)name, 230 (void*)name,
231 FALSE); 231 FALSE);
232 self->getWindow()->incBusyCount(); 232 self->getWindow()->incBusyCount();
233 233
234 LLString* j2c_name = new LLString(parcel_name.asString()); 234 std::string* j2c_name = new std::string(parcel_name.asString());
235 gAssetStorage->storeAssetData(self->mTransactionID, LLAssetType::AT_TEXTURE, 235 gAssetStorage->storeAssetData(self->mTransactionID, LLAssetType::AT_TEXTURE,
236 &auction_j2c_upload_done, 236 &auction_j2c_upload_done,
237 (void*)j2c_name, 237 (void*)j2c_name,
@@ -268,7 +268,7 @@ void LLFloaterAuction::onClickOK(void* data)
268 268
269void auction_tga_upload_done(const LLUUID& asset_id, void* user_data, S32 status, LLExtStat ext_status) // StoreAssetData callback (fixed) 269void auction_tga_upload_done(const LLUUID& asset_id, void* user_data, S32 status, LLExtStat ext_status) // StoreAssetData callback (fixed)
270{ 270{
271 LLString* name = (LLString*)(user_data); 271 std::string* name = (std::string*)(user_data);
272 llinfos << "Upload of asset '" << *name << "' " << asset_id 272 llinfos << "Upload of asset '" << *name << "' " << asset_id
273 << " returned " << status << llendl; 273 << " returned " << status << llendl;
274 delete name; 274 delete name;
@@ -281,7 +281,7 @@ void auction_tga_upload_done(const LLUUID& asset_id, void* user_data, S32 status
281 } 281 }
282 else 282 else
283 { 283 {
284 LLStringBase<char>::format_map_t args; 284 LLStringUtil::format_map_t args;
285 args["[REASON]"] = std::string(LLAssetStorage::getErrorString(status)); 285 args["[REASON]"] = std::string(LLAssetStorage::getErrorString(status));
286 gViewerWindow->alertXml("UploadAuctionSnapshotFail", args); 286 gViewerWindow->alertXml("UploadAuctionSnapshotFail", args);
287 } 287 }
@@ -289,7 +289,7 @@ void auction_tga_upload_done(const LLUUID& asset_id, void* user_data, S32 status
289 289
290void auction_j2c_upload_done(const LLUUID& asset_id, void* user_data, S32 status, LLExtStat ext_status) // StoreAssetData callback (fixed) 290void auction_j2c_upload_done(const LLUUID& asset_id, void* user_data, S32 status, LLExtStat ext_status) // StoreAssetData callback (fixed)
291{ 291{
292 LLString* name = (LLString*)(user_data); 292 std::string* name = (std::string*)(user_data);
293 llinfos << "Upload of asset '" << *name << "' " << asset_id 293 llinfos << "Upload of asset '" << *name << "' " << asset_id
294 << " returned " << status << llendl; 294 << " returned " << status << llendl;
295 delete name; 295 delete name;
@@ -302,7 +302,7 @@ void auction_j2c_upload_done(const LLUUID& asset_id, void* user_data, S32 status
302 } 302 }
303 else 303 else
304 { 304 {
305 LLStringBase<char>::format_map_t args; 305 LLStringUtil::format_map_t args;
306 args["[REASON]"] = std::string(LLAssetStorage::getErrorString(status)); 306 args["[REASON]"] = std::string(LLAssetStorage::getErrorString(status));
307 gViewerWindow->alertXml("UploadAuctionSnapshotFail", args); 307 gViewerWindow->alertXml("UploadAuctionSnapshotFail", args);
308 } 308 }