* @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;
}
* @param type the key to the plugin type
*/
void deregisterFactory(const Key& type) {
- if (!type.empty())
- m_map.erase(type);
+ m_map.erase(type);
}
/**