From b932425076c174dd1a1d16a67260c09456226840 Mon Sep 17 00:00:00 2001 From: cantor Date: Sat, 28 Apr 2007 20:31:04 +0000 Subject: [PATCH] Remove string-specific checks. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@296 de75baf8-a10c-0410-a50a-987c0e22f00f --- xmltooling/PluginManager.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xmltooling/PluginManager.h b/xmltooling/PluginManager.h index 11ae03d..5dd7628 100644 --- a/xmltooling/PluginManager.h +++ b/xmltooling/PluginManager.h @@ -60,7 +60,7 @@ namespace xmltooling { * @param factory the factory function for the plugin type */ void registerFactory(const Key& type, typename PluginManager::Factory* factory) { - if (!type.empty() && factory) + if (factory) m_map[type]=factory; } @@ -70,8 +70,7 @@ namespace xmltooling { * @param type the key to the plugin type */ void deregisterFactory(const Key& type) { - if (!type.empty()) - m_map.erase(type); + m_map.erase(type); } /** -- 2.1.4