summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-04-03 16:32:21 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-04-03 16:32:21 -0400
commite02ea3ddee87021a4b6fa0de874e2d6d71da65f9 (patch)
tree8a8cefa5897a96197844617c5fd140b9de41f657
parentb31d98e64ee24040ffeb6634c53e2a17f343d513 (diff)
LLInstanceTracker::destruct() instead of destroy().
Avoid ambiguity with LLFloater::destroy().
-rw-r--r--indra/llcommon/llinstancetracker.h16
-rw-r--r--indra/llcommon/lua_function.cpp2
2 files changed, 9 insertions, 9 deletions
diff --git a/indra/llcommon/llinstancetracker.h b/indra/llcommon/llinstancetracker.h
index 22e5d9c7a7..921f743ada 100644
--- a/indra/llcommon/llinstancetracker.h
+++ b/indra/llcommon/llinstancetracker.h
@@ -276,19 +276,19 @@ public:
virtual const KEY& getKey() const { return mInstanceKey; }
/// for use ONLY for an object we're sure resides on the heap!
- static bool destroy(const KEY& key)
+ static bool destruct(const KEY& key)
{
- return destroy(getInstance(key));
+ return destruct(getInstance(key));
}
/// for use ONLY for an object we're sure resides on the heap!
- static bool destroy(const weak_t& ptr)
+ static bool destruct(const weak_t& ptr)
{
- return destroy(ptr.lock());
+ return destruct(ptr.lock());
}
/// for use ONLY for an object we're sure resides on the heap!
- static bool destroy(const ptr_t& ptr)
+ static bool destruct(const ptr_t& ptr)
{
if (! ptr)
{
@@ -509,13 +509,13 @@ public:
using key_snapshot_of = instance_snapshot_of<SUBCLASS>;
/// for use ONLY for an object we're sure resides on the heap!
- static bool destroy(const weak_t& ptr)
+ static bool destruct(const weak_t& ptr)
{
- return destroy(ptr.lock());
+ return destruct(ptr.lock());
}
/// for use ONLY for an object we're sure resides on the heap!
- static bool destroy(const ptr_t& ptr)
+ static bool destruct(const ptr_t& ptr)
{
if (! ptr)
{
diff --git a/indra/llcommon/lua_function.cpp b/indra/llcommon/lua_function.cpp
index c86faf1ae2..332a08a444 100644
--- a/indra/llcommon/lua_function.cpp
+++ b/indra/llcommon/lua_function.cpp
@@ -459,7 +459,7 @@ LuaState::~LuaState()
{
// Did somebody call obtainListener() on this LuaState?
// That is, is there a LuaListener key in its registry?
- LuaListener::destroy(getListener());
+ LuaListener::destruct(getListener());
lua_close(mState);