summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-01-24 13:31:50 -0500
committerNat Goodspeed <nat@lindenlab.com>2023-07-13 12:49:39 -0400
commit7c79d7a7d4d5cb1e39293cdc98fd972be5bd3012 (patch)
tree49926bec54d56f28939a877814de070376926980
parent2eb0ea9593d0e299445d2e1dde711bfe5072542e (diff)
DRTVWR-558: Fix merge glitch: missing LLEventDispatcher::addFail()
(cherry picked from commit 3be250da90dd3d361df713056b881e017684e2b3)
-rw-r--r--indra/llcommon/lleventdispatcher.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/lleventdispatcher.cpp b/indra/llcommon/lleventdispatcher.cpp
index a4c0ed3766..5d18d8f6c4 100644
--- a/indra/llcommon/lleventdispatcher.cpp
+++ b/indra/llcommon/lleventdispatcher.cpp
@@ -605,6 +605,14 @@ void LLEventDispatcher::addLLSD(const std::string& name, const std::string& desc
mDispatch.emplace(name, new LLSDDispatchEntry(this, desc, callable, required));
}
+void LLEventDispatcher::addFail(const std::string& name, const char* classname) const
+{
+ LL_ERRS("LLEventDispatcher") << "LLEventDispatcher(" << mDesc << ")::add(" << name
+ << "): " << LLError::Log::demangle(classname)
+ << " is not a subclass of LLEventDispatcher"
+ << LL_ENDL;
+}
+
/// Unregister a callable
bool LLEventDispatcher::remove(const std::string& name)
{