summaryrefslogtreecommitdiff
path: root/include/extensible.h
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-12-02 19:40:33 +0100
committerattilamolnar <attilamolnar@hush.com>2012-12-02 19:43:20 +0100
commiteea9343393614f81169eaf9ac1fcab1db949d018 (patch)
treea9c71e85998d0fe532efbe8fdd1f2cd7104cb920 /include/extensible.h
parentfd20068a0bddf39b7464218997ccff37489608c9 (diff)
Throw an exception when attempting to register an extension with a name that already exists
Previously this silently failed
Diffstat (limited to 'include/extensible.h')
-rw-r--r--include/extensible.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/extensible.h b/include/extensible.h
index f327cf75c..bcc4992bb 100644
--- a/include/extensible.h
+++ b/include/extensible.h
@@ -101,7 +101,7 @@ class CoreExport ExtensionManager
{
std::map<std::string, reference<ExtensionItem> > types;
public:
- void Register(ExtensionItem* item);
+ bool Register(ExtensionItem* item);
void BeginUnregister(Module* module, std::vector<reference<ExtensionItem> >& list);
ExtensionItem* GetItem(const std::string& name);
};