summaryrefslogtreecommitdiff
path: root/indra/llcommon/llregistry.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2015-05-22 14:02:24 -0400
committerNat Goodspeed <nat@lindenlab.com>2015-05-22 14:02:24 -0400
commit331e932857e1156a68b6d39d3ea2d8c1f39ec7ae (patch)
tree95f3c0d71ad445b773b2809a82fb5a8dd3a42d71 /indra/llcommon/llregistry.h
parent107b9bcb70e785c2d12515e38b8b296eea7ab8d8 (diff)
MAINT-5232: Clean up some dubious LLSingleton methods.
Remove evil getIfExists() method, used by no one. Remove evil destroyed() method, used in exactly three places -- one of which is a test. Replace with equally evil instanceExists() method, which is used EVERYWHERE -- sigh.
Diffstat (limited to 'indra/llcommon/llregistry.h')
-rwxr-xr-xindra/llcommon/llregistry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcommon/llregistry.h b/indra/llcommon/llregistry.h
index 29950c108d..fde729f8f9 100755
--- a/indra/llcommon/llregistry.h
+++ b/indra/llcommon/llregistry.h
@@ -269,7 +269,7 @@ public:
~ScopedRegistrar()
{
- if (!singleton_t::destroyed())
+ if (singleton_t::instanceExists())
{
popScope();
}