From 70d8316da87b01a13781c829fee08e61931b1e37 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Wed, 27 Sep 2023 16:21:32 -0400 Subject: DRTVWR-589: Use std::placeholders::_1, etc., for std::bind() --- indra/newview/llluamanager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'indra/newview') 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) -- cgit v1.2.3