summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelsnapshotfacebook.cpp
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2013-06-06 00:09:59 +0100
committerCho <cho@lindenlab.com>2013-06-06 00:09:59 +0100
commit9232d919c8571743d9f5c899b80e2807f131f4d3 (patch)
tree009581aefa54cdf23391ecd3f557baf9967b49da /indra/newview/llpanelsnapshotfacebook.cpp
parent0e6306e70dd5484cbb5c467a6ffc5f520f511489 (diff)
removed unnecessary passing of image caption
Diffstat (limited to 'indra/newview/llpanelsnapshotfacebook.cpp')
-rwxr-xr-xindra/newview/llpanelsnapshotfacebook.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llpanelsnapshotfacebook.cpp b/indra/newview/llpanelsnapshotfacebook.cpp
index 954941274a..9bea5aa796 100755
--- a/indra/newview/llpanelsnapshotfacebook.cpp
+++ b/indra/newview/llpanelsnapshotfacebook.cpp
@@ -64,7 +64,7 @@ private:
/*virtual*/ void updateControls(const LLSD& info);
void onSend();
- void onImageUploaded(const std::string& image_url, const std::string& caption);
+ void onImageUploaded(const std::string& caption, const std::string& image_url);
};
static LLRegisterPanelClassWrapper<LLPanelSnapshotFacebook> panel_class("llpanelsnapshotfacebook");
@@ -99,14 +99,14 @@ void LLPanelSnapshotFacebook::onSend()
std::string caption = getChild<LLUICtrl>("caption")->getValue().asString();
bool add_location = getChild<LLUICtrl>("add_location_cb")->getValue().asBoolean();
- LLWebProfile::uploadImage(LLFloaterSnapshot::getImageData(), caption, add_location, boost::bind(&LLPanelSnapshotFacebook::onImageUploaded, this, _1, _2));
+ LLWebProfile::uploadImage(LLFloaterSnapshot::getImageData(), caption, add_location, boost::bind(&LLPanelSnapshotFacebook::onImageUploaded, this, caption, _1));
LLFloaterSnapshot::postSave();
// test with a placeholder image, until we can figure out a way to grab the uploaded image url
//LLFacebookConnect::instance().sharePhoto("http://fc02.deviantart.net/fs43/i/2009/125/a/9/Future_of_Frog_by_axcho.jpg", caption);
}
-void LLPanelSnapshotFacebook::onImageUploaded(const std::string& image_url, const std::string& caption)
+void LLPanelSnapshotFacebook::onImageUploaded(const std::string& caption, const std::string& image_url)
{
if (!image_url.empty())
{