diff options
Diffstat (limited to 'indra/newview/llfloaterbulkpermission.cpp')
-rw-r--r-- | indra/newview/llfloaterbulkpermission.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llfloaterbulkpermission.cpp b/indra/newview/llfloaterbulkpermission.cpp index 98468297d8..4697296e16 100644 --- a/indra/newview/llfloaterbulkpermission.cpp +++ b/indra/newview/llfloaterbulkpermission.cpp @@ -145,26 +145,27 @@ void LLFloaterBulkPermission::inventoryChanged(LLViewerObject* viewer_object, void LLFloaterBulkPermission::onApplyBtn(void* user_data) { - LLFloaterBulkPermission* self = (LLFloaterBulkPermission*)user_data; + LLFloaterBulkPermission* self = static_cast<LLFloaterBulkPermission*>(user_data); self->doApply(); } void LLFloaterBulkPermission::onCloseBtn(void* user_data) { - LLFloaterBulkPermission* self = (LLFloaterBulkPermission*)user_data; + LLFloaterBulkPermission* self = static_cast<LLFloaterBulkPermission*>(user_data); self->onClose(false); } //static void LLFloaterBulkPermission::onCommitCopy(LLUICtrl* ctrl, void* data) { + LLFloaterBulkPermission* self = static_cast<LLFloaterBulkPermission*>(data); // Implements fair use BOOL copyable = gSavedSettings.getBOOL("BulkChangeNextOwnerCopy"); if(!copyable) { gSavedSettings.setBOOL("BulkChangeNextOwnerTransfer", TRUE); } - LLCheckBoxCtrl* xfer = static_cast<LLFloaterPerms*>(data)->getChild<LLCheckBoxCtrl>("next_owner_transfer"); + LLCheckBoxCtrl* xfer = self->getChild<LLCheckBoxCtrl>("next_owner_transfer"); xfer->setEnabled(copyable); } |