summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-09-27 16:21:32 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-09-27 16:21:32 -0400
commit70d8316da87b01a13781c829fee08e61931b1e37 (patch)
tree3fc441676d2abf62ec96e9ba8aaf4b204e0080c9 /indra/newview
parentdbf9898aa15db9ec9f1ee12627afbc0565301235 (diff)
DRTVWR-589: Use std::placeholders::_1, etc., for std::bind()
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llluamanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llluamanager.cpp b/indra/newview/llluamanager.cpp
index d7893ce863..26e29a4ae1 100644
--- a/indra/newview/llluamanager.cpp
+++ b/indra/newview/llluamanager.cpp
@@ -106,7 +106,8 @@ public:
super(getUniqueKey()),
mState(L),
mReplyPump(LLUUID::generateNewID().asString()),
- mListener(new LLLeapListener(std::bind(&LuaListener::connect, this, _1, _2)))
+ mListener(new LLLeapListener(std::bind(&LuaListener::connect, this,
+ std::placeholders::_1, std::placeholders::_2)))
{
mReplyConnection = connect(mReplyPump, "LuaListener");
}
@@ -133,7 +134,8 @@ private:
LLBoundListener connect(LLEventPump& pump, const std::string& listener)
{
return pump.listen(listener,
- std::bind(&LuaListener::call_lua, mState, pump.getName(), _1));
+ std::bind(&LuaListener::call_lua, mState, pump.getName(),
+ std::placeholders::_1));
}
static bool call_lua(lua_State* L, const std::string& pump, const LLSD& data)