File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -249,14 +249,9 @@ ObjectFactoryBase::RegisterInternal()
249
249
250
250
// Guarantee that no internal factories have already been registered.
251
251
itkAssertInDebugAndIgnoreInReleaseMacro (m_PimplGlobals->m_RegisteredFactories .empty ());
252
- m_PimplGlobals->m_RegisteredFactories .clear ();
253
252
254
- // Register all factories registered by the
255
- // "RegisterFactoryInternal" method
256
- for (auto & internalFactory : m_PimplGlobals->m_InternalFactories )
257
- {
258
- m_PimplGlobals->m_RegisteredFactories .push_back (internalFactory);
259
- }
253
+ // Register all factories registered by the "RegisterFactoryInternal" method
254
+ m_PimplGlobals->m_RegisteredFactories = m_PimplGlobals->m_InternalFactories ;
260
255
}
261
256
262
257
/* *
You can’t perform that action at this time.
0 commit comments