From 401de9da95ae790f4b4d21d5a35243bf1af4ed84 Mon Sep 17 00:00:00 2001 From: Kitty Barnett Date: Tue, 16 Jun 2020 15:15:48 +0200 Subject: [PATCH] [FIXED] Remove unused lambda capture since GCC/Clang is getting upset about it --- indra/newview/rlvenvironment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/rlvenvironment.cpp b/indra/newview/rlvenvironment.cpp index f305309e0c..d723630fdb 100644 --- a/indra/newview/rlvenvironment.cpp +++ b/indra/newview/rlvenvironment.cpp @@ -650,7 +650,7 @@ void RlvEnvironment::registerSkyFn(const std::string& strFnName, const std::func void RlvEnvironment::registerGetEnvFn(const std::string& strFnName, const std::function& getFn) { RLV_ASSERT(m_GetFnLookup.end() == m_GetFnLookup.find(strFnName)); - m_GetFnLookup.insert(std::make_pair(strFnName, [this, getFn](const std::string& strRlvParam) + m_GetFnLookup.insert(std::make_pair(strFnName, [getFn](const std::string& strRlvParam) { if (RlvUtil::sendChatReply(strRlvParam, getFn(getTargetEnvironment()))) return RLV_RET_SUCCESS; @@ -662,7 +662,7 @@ template void RlvEnvironment::registerSetEnvFn(const std::string& strFnName, const std::function& setFn) { RLV_ASSERT(m_SetFnLookup.end() == m_SetFnLookup.find(strFnName)); - m_SetFnLookup.insert(std::make_pair(strFnName, [this, setFn](const std::string& strRlvOption) + m_SetFnLookup.insert(std::make_pair(strFnName, [setFn](const std::string& strRlvOption) { T optionValue; if (!RlvCommandOptionHelper::parseOption(strRlvOption, optionValue))