From 9426162a3b24732167e4fa7aa2fa6ee19d33e7e9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 25 Nov 2019 12:10:01 +0000 Subject: tdf#126043 use CommandInfoProvider::GetModuleIdentifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Caolán McNamara --- cui/source/customize/cfg.cxx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'cui/source/customize/cfg.cxx') 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& ) { -- cgit