summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-10-19 11:50:50 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-10-19 11:50:50 -0400
commit1f3c0a4cd0c324e9c46c3811404357e8a6790b26 (patch)
tree66da44d7090d971f1afe42652235bfbbc2ff1938
parentf2321402c77e0f6709e56330efb80f2f2828a8b1 (diff)
DRTVWR-589: Fix unreferenced LuaListener::mState member.
-rw-r--r--indra/newview/llluamanager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/newview/llluamanager.cpp b/indra/newview/llluamanager.cpp
index de02fe4646..0475122832 100644
--- a/indra/newview/llluamanager.cpp
+++ b/indra/newview/llluamanager.cpp
@@ -115,7 +115,6 @@ class LuaListener: public LLInstanceTracker<LuaListener, int>
public:
LuaListener(lua_State* L):
super(getUniqueKey()),
- mState(L),
mListener(
new LLLeapListener(
[L](LLEventPump& pump, const std::string& listener)
@@ -194,7 +193,6 @@ private:
return result;
}
- lua_State* mState;
#ifndef LL_TEST
LLEventStream mReplyPump{ LLUUID::generateNewID().asString() };
#else
@@ -1114,7 +1112,7 @@ public:
case LUA_TUSERDATA:
{
const size_t maxlen = 20;
- auto binlen{ lua_rawlen(self.L, self.index) };
+ size_t binlen{ lua_rawlen(self.L, self.index) };
LLSD::Binary binary(std::min(maxlen, binlen));
std::memcpy(binary.data(), lua_touserdata(self.L, self.index), binary.size());
out << LL::hexdump(binary);