diff --git a/unittests/CatchSetup.cpp b/unittests/CatchSetup.cpp index 9206c2e18..aa4cdcbab 100644 --- a/unittests/CatchSetup.cpp +++ b/unittests/CatchSetup.cpp @@ -25,7 +25,7 @@ ServiceInterfaceStream warning("WARNING"); int customSetup() { // global setup ObjectManager* objMan = ObjectManager::instance(); - objMan->setObjectFactoryFunction(Factory::produceFrameworkObjects, nullptr); + Factory::produceFrameworkObjects(nullptr); objMan->initialize(); return 0; }