From 5fa8058d9bd7e448b638b132cbd7410922dc8b23 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 13 Jul 2006 21:24:12 +0000 Subject: [PATCH] Delete incorrect use of typename on template parameter use. --- xmltooling/PluginManager.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xmltooling/PluginManager.h b/xmltooling/PluginManager.h index 592253e..3adf024 100644 --- a/xmltooling/PluginManager.h +++ b/xmltooling/PluginManager.h @@ -15,7 +15,7 @@ */ /** - * @file PluginManager.h + * @file xmltooling/PluginManager.h * * Plugin management template */ @@ -49,7 +49,7 @@ namespace xmltooling { ~PluginManager() {} /** Factory function for plugin. */ - typedef T* Factory(typename const Params&); + typedef T* Factory(const Params&); /** * Registers the factory for a given type. @@ -57,7 +57,7 @@ namespace xmltooling { * @param type the name of the plugin type * @param factory the factory function for the plugin type */ - void registerFactory(const char* type, typename Factory* factory) { + void registerFactory(const char* type, typename PluginManager::Factory* factory) { if (type && factory) m_map[type]=factory; } @@ -81,15 +81,15 @@ namespace xmltooling { * @param p parameters to configure plugin * @return the constructed plugin */ - T* newPlugin(const char* type, typename const Params& p) { - std::map::const_iterator i=m_map.find(type); + T* newPlugin(const char* type, const Params& p) { + typename std::map::const_iterator i=m_map.find(type); if (i==m_map.end()) throw UnknownExtensionException("Unable to build plugin of type '$1'",params(1,type)); return i->second(p); } private: - std::map m_map; + std::map m_map; }; }; -- 2.1.4