summaryrefslogtreecommitdiff
path: root/cui/source/customize/cfg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-11-25 12:10:01 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-11-26 13:51:58 +0100
commit9426162a3b24732167e4fa7aa2fa6ee19d33e7e9 (patch)
tree3146b04d889359d1135d14da9d8a538f7ff1272b /cui/source/customize/cfg.cxx
parent3b0d29f1461c97c0c812a500b3414b9a50d694ff (diff)
tdf#126043 use CommandInfoProvider::GetModuleIdentifier
which probably already has a cached ModuleManager Change-Id: Id653e57ecf40061ace086881344a85d7413a5afc Reviewed-on: https://gerrit.libreoffice.org/83671 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
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 d3a04baa1e7c..e47bb5d4bf7f 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& )
{