diff --git a/indra/newview/llfloaterfacebook.cpp b/indra/newview/llfloaterfacebook.cpp index b421fa0e55fda7ea47eadd8786775c3dd20b7297..9e3f917eae9f98407b0beded1e1592679d36016f 100644 --- a/indra/newview/llfloaterfacebook.cpp +++ b/indra/newview/llfloaterfacebook.cpp @@ -335,9 +335,8 @@ LLSnapshotLivePreview* LLFacebookPhotoPanel::getPreviewView() return previewp; } -void LLFacebookPhotoPanel::onVisibilityChange(const LLSD& new_visibility) +void LLFacebookPhotoPanel::onVisibilityChange(BOOL visible) { - bool visible = new_visibility.asBoolean(); if (visible) { if (mPreviewHandle.get()) @@ -931,10 +930,8 @@ void LLFacebookAccountPanel::draw() LLPanel::draw(); } -void LLFacebookAccountPanel::onVisibilityChange(const LLSD& new_visibility) +void LLFacebookAccountPanel::onVisibilityChange(BOOL visible) { - bool visible = new_visibility.asBoolean(); - if(visible) { LLEventPumps::instance().obtain("FacebookConnectState").stopListening("LLFacebookAccountPanel"); diff --git a/indra/newview/llfloaterfacebook.h b/indra/newview/llfloaterfacebook.h index fd5d3d06357e3ff977124f0bfac1f380b77015b2..34356412d6e7021f95eba8d1ae550484a318c99b 100644 --- a/indra/newview/llfloaterfacebook.h +++ b/indra/newview/llfloaterfacebook.h @@ -66,7 +66,7 @@ class LLFacebookPhotoPanel : public LLPanel void draw(); LLSnapshotLivePreview* getPreviewView(); - void onVisibilityChange(const LLSD& new_visibility); + void onVisibilityChange(BOOL new_visibility); void onClickBigPreview(); void onClickNewSnapshot(); void onSend(); @@ -155,7 +155,7 @@ class LLFacebookAccountPanel : public LLPanel void draw(); private: - void onVisibilityChange(const LLSD& new_visibility); + void onVisibilityChange(BOOL new_visibility); bool onFacebookConnectStateChange(const LLSD& data); bool onFacebookConnectInfoChange(); void onConnect(); diff --git a/indra/newview/llfloaterflickr.cpp b/indra/newview/llfloaterflickr.cpp index 99b275fd0bb898389a1c060f8850bdd3f1ec0a47..4e6d98ecfabc5362ab07c498f863316eb2122bec 100644 --- a/indra/newview/llfloaterflickr.cpp +++ b/indra/newview/llfloaterflickr.cpp @@ -226,9 +226,8 @@ LLSnapshotLivePreview* LLFlickrPhotoPanel::getPreviewView() return previewp; } -void LLFlickrPhotoPanel::onVisibilityChange(const LLSD& new_visibility) +void LLFlickrPhotoPanel::onVisibilityChange(BOOL visible) { - bool visible = new_visibility.asBoolean(); if (visible) { if (mPreviewHandle.get()) @@ -563,10 +562,8 @@ void LLFlickrAccountPanel::draw() LLPanel::draw(); } -void LLFlickrAccountPanel::onVisibilityChange(const LLSD& new_visibility) +void LLFlickrAccountPanel::onVisibilityChange(BOOL visible) { - bool visible = new_visibility.asBoolean(); - if(visible) { LLEventPumps::instance().obtain("FlickrConnectState").stopListening("LLFlickrAccountPanel"); diff --git a/indra/newview/llfloaterflickr.h b/indra/newview/llfloaterflickr.h index 7a5453d32a430859dc51dfc2bacb1e6bce375d3b..ba27c9a3d8bccbebf320f4a86c9731ab3f63932f 100644 --- a/indra/newview/llfloaterflickr.h +++ b/indra/newview/llfloaterflickr.h @@ -47,7 +47,7 @@ class LLFlickrPhotoPanel : public LLPanel void draw(); LLSnapshotLivePreview* getPreviewView(); - void onVisibilityChange(const LLSD& new_visibility); + void onVisibilityChange(BOOL new_visibility); void onClickNewSnapshot(); void onClickBigPreview(); void onSend(); @@ -93,7 +93,7 @@ class LLFlickrAccountPanel : public LLPanel void draw(); private: - void onVisibilityChange(const LLSD& new_visibility); + void onVisibilityChange(BOOL new_visibility); bool onFlickrConnectStateChange(const LLSD& data); bool onFlickrConnectInfoChange(); void onConnect(); diff --git a/indra/newview/llfloatertwitter.cpp b/indra/newview/llfloatertwitter.cpp index f20d886b7f45902977296907ae1a56ec1ded9725..78e9259919cc27c205a66f3fae023f2a40bbcab5 100644 --- a/indra/newview/llfloatertwitter.cpp +++ b/indra/newview/llfloatertwitter.cpp @@ -229,9 +229,8 @@ LLSnapshotLivePreview* LLTwitterPhotoPanel::getPreviewView() return previewp; } -void LLTwitterPhotoPanel::onVisibilityChange(const LLSD& new_visibility) +void LLTwitterPhotoPanel::onVisibilityChange(BOOL visible) { - bool visible = new_visibility.asBoolean(); if (visible) { if (mPreviewHandle.get()) @@ -592,10 +591,8 @@ void LLTwitterAccountPanel::draw() LLPanel::draw(); } -void LLTwitterAccountPanel::onVisibilityChange(const LLSD& new_visibility) +void LLTwitterAccountPanel::onVisibilityChange(BOOL visible) { - bool visible = new_visibility.asBoolean(); - if(visible) { LLEventPumps::instance().obtain("TwitterConnectState").stopListening("LLTwitterAccountPanel"); diff --git a/indra/newview/llfloatertwitter.h b/indra/newview/llfloatertwitter.h index 659ab7779a146141d0d1d72bcf66a428da512fcc..f07ec2ca2f0ba4dcdf7a97844794d9719a83ff9b 100644 --- a/indra/newview/llfloatertwitter.h +++ b/indra/newview/llfloatertwitter.h @@ -46,7 +46,7 @@ class LLTwitterPhotoPanel : public LLPanel void draw(); LLSnapshotLivePreview* getPreviewView(); - void onVisibilityChange(const LLSD& new_visibility); + void onVisibilityChange(BOOL new_visibility); void onAddLocationToggled(); void onAddPhotoToggled(); void onClickBigPreview(); @@ -97,7 +97,7 @@ class LLTwitterAccountPanel : public LLPanel void draw(); private: - void onVisibilityChange(const LLSD& new_visibility); + void onVisibilityChange(BOOL new_visibility); bool onTwitterConnectStateChange(const LLSD& data); bool onTwitterConnectInfoChange(); void onConnect();