projects
/
shibboleth
/
cpp-xmltooling.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da8be0e
)
Remove string-specific checks.
author
Scott Cantor
<cantor.2@osu.edu>
Sat, 28 Apr 2007 20:31:04 +0000
(20:31 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Sat, 28 Apr 2007 20:31:04 +0000
(20:31 +0000)
xmltooling/PluginManager.h
patch
|
blob
|
history
diff --git
a/xmltooling/PluginManager.h
b/xmltooling/PluginManager.h
index
11ae03d
..
5dd7628
100644
(file)
--- 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);
}
/**