summaryrefslogtreecommitdiff
path: root/framework/source/layoutmanager
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-12-10 16:26:01 +0200
committerNoel Grandin <noel@peralex.com>2012-12-13 05:20:58 +0200
commit9779ae8bdeffe1c296803dffefa0d69b0fb8f975 (patch)
tree4e7cf6fa46922ffbe915f820842866499814337f /framework/source/layoutmanager
parente52a5e298b55125534cd8548ed4c1f8b694bfef6 (diff)
fdo#46808, use service constructor for ui::
::ModuleUIConfigurationManagerSupplier Change-Id: I06e8b3ef9b525da014a2bb7702587d360779aebc
Diffstat (limited to 'framework/source/layoutmanager')
-rw-r--r--framework/source/layoutmanager/layoutmanager.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx
index ce7150ab4f24..1c20dd3faebe 100644
--- a/framework/source/layoutmanager/layoutmanager.cxx
+++ b/framework/source/layoutmanager/layoutmanager.cxx
@@ -47,7 +47,7 @@
#include <com/sun/star/awt/PosSize.hpp>
#include <com/sun/star/awt/XDevice.hpp>
#include <com/sun/star/awt/XSystemDependentWindowPeer.hpp>
-#include <com/sun/star/ui/XModuleUIConfigurationManagerSupplier.hpp>
+#include <com/sun/star/ui/ModuleUIConfigurationManagerSupplier.hpp>
#include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
#include <com/sun/star/ui/UIElementType.hpp>
#include <com/sun/star/container/XNameReplace.hpp>
@@ -288,8 +288,7 @@ void LayoutManager::implts_reset( sal_Bool bAttached )
{
Reference< XModuleUIConfigurationManagerSupplier > xModuleCfgSupplier;
if ( xServiceManager.is() )
- xModuleCfgSupplier = Reference< XModuleUIConfigurationManagerSupplier >(
- xServiceManager->createInstance( SERVICENAME_MODULEUICONFIGURATIONMANAGERSUPPLIER ), UNO_QUERY );
+ xModuleCfgSupplier = ModuleUIConfigurationManagerSupplier::create( comphelper::getComponentContext(xServiceManager) );
if ( xModuleCfgMgr.is() )
{