aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterpostcard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterpostcard.cpp')
-rw-r--r--linden/indra/newview/llfloaterpostcard.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloaterpostcard.cpp b/linden/indra/newview/llfloaterpostcard.cpp
index fbd8e72..b4bcdb7 100644
--- a/linden/indra/newview/llfloaterpostcard.cpp
+++ b/linden/indra/newview/llfloaterpostcard.cpp
@@ -75,7 +75,7 @@ LLFloaterPostcard::instance_list_t LLFloaterPostcard::sInstances;
75///---------------------------------------------------------------------------- 75///----------------------------------------------------------------------------
76 76
77LLFloaterPostcard::LLFloaterPostcard(LLImageJPEG* jpeg, LLImageGL *img, const LLVector2& img_scale, const LLVector3d& pos_taken_global) 77LLFloaterPostcard::LLFloaterPostcard(LLImageJPEG* jpeg, LLImageGL *img, const LLVector2& img_scale, const LLVector3d& pos_taken_global)
78: LLFloater("Postcard Floater"), 78: LLFloater(std::string("Postcard Floater")),
79 mJPEGImage(jpeg), 79 mJPEGImage(jpeg),
80 mViewerImage(img), 80 mViewerImage(img),
81 mImageScale(img_scale), 81 mImageScale(img_scale),
@@ -282,7 +282,7 @@ void LLFloaterPostcard::uploadCallback(const LLUUID& asset_id, void *user_data,
282 282
283 if (result) 283 if (result)
284 { 284 {
285 LLStringBase<char>::format_map_t args; 285 LLStringUtil::format_map_t args;
286 args["[REASON]"] = std::string(LLAssetStorage::getErrorString(result)); 286 args["[REASON]"] = std::string(LLAssetStorage::getErrorString(result));
287 gViewerWindow->alertXml("ErrorUploadingPostcard", args); 287 gViewerWindow->alertXml("ErrorUploadingPostcard", args);
288 } 288 }
@@ -312,13 +312,13 @@ void LLFloaterPostcard::uploadCallback(const LLUUID& asset_id, void *user_data,
312} 312}
313 313
314// static 314// static
315void LLFloaterPostcard::updateUserInfo(const char *email) 315void LLFloaterPostcard::updateUserInfo(const std::string& email)
316{ 316{
317 for (instance_list_t::iterator iter = sInstances.begin(); 317 for (instance_list_t::iterator iter = sInstances.begin();
318 iter != sInstances.end(); ++iter) 318 iter != sInstances.end(); ++iter)
319 { 319 {
320 LLFloaterPostcard *instance = *iter; 320 LLFloaterPostcard *instance = *iter;
321 const LLString& text = instance->childGetValue("from_form").asString(); 321 const std::string& text = instance->childGetValue("from_form").asString();
322 if (text.empty()) 322 if (text.empty())
323 { 323 {
324 // there's no text in this field yet, pre-populate 324 // there's no text in this field yet, pre-populate
@@ -336,7 +336,7 @@ void LLFloaterPostcard::onMsgFormFocusRecieved(LLFocusableElement* receiver, voi
336 if(msgForm && msgForm == receiver && msgForm->hasFocus() && !(self->mHasFirstMsgFocus)) 336 if(msgForm && msgForm == receiver && msgForm->hasFocus() && !(self->mHasFirstMsgFocus))
337 { 337 {
338 self->mHasFirstMsgFocus = true; 338 self->mHasFirstMsgFocus = true;
339 msgForm->setText(LLString::null); 339 msgForm->setText(LLStringUtil::null);
340 } 340 }
341 } 341 }
342} 342}
@@ -392,10 +392,10 @@ void LLFloaterPostcard::sendPostcard()
392 { 392 {
393 gAssetStorage->storeAssetData(mTransactionID, LLAssetType::AT_IMAGE_JPEG, &uploadCallback, (void *)this, FALSE); 393 gAssetStorage->storeAssetData(mTransactionID, LLAssetType::AT_IMAGE_JPEG, &uploadCallback, (void *)this, FALSE);
394 } 394 }
395 395
396 // give user feedback of the event 396 // give user feedback of the event
397 gViewerWindow->playSnapshotAnimAndSound(); 397 gViewerWindow->playSnapshotAnimAndSound();
398 LLUploadDialog::modalUploadDialog("Uploading...\n\nPostcard"); 398 LLUploadDialog::modalUploadDialog(getString("upload_message"));
399 399
400 // don't destroy the window until the upload is done 400 // don't destroy the window until the upload is done
401 // this way we keep the information in the form 401 // this way we keep the information in the form