summaryrefslogtreecommitdiff
path: root/cui/source/customize/cfg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/customize/cfg.cxx')
-rw-r--r--cui/source/customize/cfg.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index acb447b1f4f7..277ce523867a 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1267,17 +1267,7 @@ OUString SvxConfigPage::GetFrameWithDefaultAndIdentify( uno::Reference< frame::X
return sModuleID;
}
- uno::Reference< css::frame::XModuleManager2 > xModuleManager(
- css::frame::ModuleManager::create( xContext ) );
-
- try
- {
- sModuleID = xModuleManager->identify( _inout_rxFrame );
- }
- catch ( const frame::UnknownModuleException& )
- {
- }
-
+ sModuleID = vcl::CommandInfoProvider::GetModuleIdentifier(_inout_rxFrame);
}
catch( const uno::Exception& )
{