summaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-11-26 13:39:56 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-11-26 13:39:56 +0100
commitdd5e75f99e37fc8e407da6fc003fcfa56b802752 (patch)
tree6b99a503f35f85b902c1d2254e702d8baa28ba68 /src/base.cpp
parent74d53f48fc5b12bdd43e76af42f7fbf8cce89a9a (diff)
Add typedef ExtensionManager::ExtMap
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base.cpp b/src/base.cpp
index 67b136ec8..c268c7493 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -147,10 +147,10 @@ bool ExtensionManager::Register(ExtensionItem* item)
void ExtensionManager::BeginUnregister(Module* module, std::vector<reference<ExtensionItem> >& list)
{
- std::map<std::string, reference<ExtensionItem> >::iterator i = types.begin();
+ ExtMap::iterator i = types.begin();
while (i != types.end())
{
- std::map<std::string, reference<ExtensionItem> >::iterator me = i++;
+ ExtMap::iterator me = i++;
ExtensionItem* item = me->second;
if (item->creator == module)
{
@@ -162,7 +162,7 @@ void ExtensionManager::BeginUnregister(Module* module, std::vector<reference<Ext
ExtensionItem* ExtensionManager::GetItem(const std::string& name)
{
- std::map<std::string, reference<ExtensionItem> >::iterator i = types.find(name);
+ ExtMap::iterator i = types.find(name);
if (i == types.end())
return NULL;
return i->second;