* @param type the name of the plugin type\r
*/\r
void deregisterFactory(const char* type) {\r
- if (type) {\r
+ if (type)\r
m_map.erase(type);\r
- }\r
+ }\r
+\r
+ /**\r
+ * Unregisters all registered factories.\r
+ */\r
+ void deregisterFactories() {\r
+ m_map.clear();\r
}\r
\r
/**\r