summaryrefslogtreecommitdiff
path: root/indra/llui/llmenugl.h
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-05-31 20:03:13 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-05-31 20:03:13 +0300
commitf08a3c80d61795bb1fc0e576948bca3362ef8e6c (patch)
treef7bc69af107d2c06bff606770ae19053dcdff7c0 /indra/llui/llmenugl.h
parent3fc2aa78f371f7f3da4a3c485293492c68e9b2c8 (diff)
Cherry-pick leap.lua changes; other clean up
Diffstat (limited to 'indra/llui/llmenugl.h')
-rw-r--r--indra/llui/llmenugl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/llmenugl.h b/indra/llui/llmenugl.h
index 79f83b5773..98b76c08ff 100644
--- a/indra/llui/llmenugl.h
+++ b/indra/llui/llmenugl.h
@@ -950,11 +950,11 @@ public:
LLUICtrl::EnableCallbackRegistry::currentRegistrar().add(name, boost::bind(&view_listener_t::handleEvent, listener, _2));
}
- typedef LLUICtrl::LLCommitCallbackInfo cb_info;
+ typedef LLUICtrl::CommitCallbackInfo cb_info;
static void addCommit(view_listener_t *listener, const std::string &name, cb_info::EUntrustedCall handle_untrusted = cb_info::UNTRUSTED_ALLOW)
{
LLUICtrl::SharedCommitCallbackRegistry::currentRegistrar().add(name,
- cb_info(boost::bind(&view_listener_t::handleEvent, listener, _2), handle_untrusted));
+ cb_info([listener](LLUICtrl*, const LLSD& param){ return listener->handleEvent(param); }, handle_untrusted));
}
static void addMenu(view_listener_t *listener, const std::string &name, cb_info::EUntrustedCall handle_untrusted = cb_info::UNTRUSTED_ALLOW)