summaryrefslogtreecommitdiff
path: root/cui/source/customize
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 21:11:29 +0100
commit5eab437c406a2e445baf174bf2c2ad21e663ef2e (patch)
treeb4d8ca934555003a5320423381581a8d9a321986 /cui/source/customize
parentcd87801ee235c5f30d070f2eeea6d432e21259bf (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> (cherry picked from commit 9426162a3b24732167e4fa7aa2fa6ee19d33e7e9) Reviewed-on: https://gerrit.libreoffice.org/83788
Diffstat (limited to 'cui/source/customize')
-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& )
{