diff --git a/framework/source/classes/taskcreator.cxx b/framework/source/classes/taskcreator.cxx index bff649cf93b7..49aebce58ca1 100644 --- a/framework/source/classes/taskcreator.cxx +++ b/framework/source/classes/taskcreator.cxx @@ -28,9 +28,10 @@ #include #include -#include #include +#include + namespace framework{ /*-****************************************************************************************************//** @@ -78,12 +79,9 @@ css::uno::Reference< css::frame::XFrame > TaskCreator::createTask( const OUStrin ( TargetHelper::matchSpecialTarget(sName, TargetHelper::E_DEFAULT) ) ) { - ::comphelper::ConfigurationHelper::readDirectKey( - xContext, - "org.openoffice.Office.TabBrowse", - "TaskCreatorService", - "ImplementationName", - ::comphelper::ConfigurationHelper::E_READONLY) >>= sCreator; + + boost::optional x(officecfg::Office::TabBrowse::TaskCreatorService::ImplementationName::get(xContext)); + if (x) sCreator = x.get(); } xCreator = css::uno::Reference< css::lang::XSingleServiceFactory >(