diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-01 15:27:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-04 07:25:00 +0100 |
commit | f6b437c57d4b0b032cb7e0838e16572bdf9a05cc (patch) | |
tree | 4cbcdf05171662f1e799c63f438ef7b3c4a0ddcb /cui | |
parent | 68f86457525c60f580954280d1a759aa174e8e96 (diff) |
loplugin:singlevalfields
Change-Id: I521d2efa641f3a14c48561e2e0f6d687e5807d93
Reviewed-on: https://gerrit.libreoffice.org/45662
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfgutil.cxx | 12 | ||||
-rw-r--r-- | cui/source/inc/cfgutil.hxx | 1 |
2 files changed, 1 insertions, 12 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index 131930aa6688..e033e155b099 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -396,7 +396,6 @@ SfxConfigGroupListBox::SfxConfigGroupListBox(vcl::Window* pParent, WinBits nStyl : SvTreeListBox(pParent, nStyle) , xImp(new SvxConfigGroupBoxResource_Impl()) , pFunctionListBox(nullptr) - , m_pImageProvider(nullptr) , pStylesInfo(nullptr) { SetStyle( GetStyle() | WB_CLIPCHILDREN | WB_HSCROLL | WB_HASBUTTONS | WB_HASLINES | WB_HASLINESATROOT | WB_HASBUTTONSATROOT ); @@ -647,16 +646,7 @@ void SfxConfigGroupListBox::FillFunctionsList(const css::uno::Sequence<DispatchI for (const auto & rInfo : xCommands) { OUString sUIName = MapCommand2UIName(rInfo.Command); - Image aImage; - if ( m_pImageProvider ) - aImage = m_pImageProvider->GetImage( rInfo.Command ); - - SvTreeListEntry* pFuncEntry = nullptr; - if ( !!aImage ) - pFuncEntry = pFunctionListBox->InsertEntry( sUIName, aImage, aImage ); - else - pFuncEntry = pFunctionListBox->InsertEntry(sUIName ); - + SvTreeListEntry* pFuncEntry = pFunctionListBox->InsertEntry(sUIName ); aArr.push_back( o3tl::make_unique<SfxGroupInfo_Impl>( SfxCfgKind::FUNCTION_SLOT, 0 ) ); SfxGroupInfo_Impl* pGrpInfo = aArr.back().get(); pGrpInfo->sCommand = rInfo.Command; diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx index 4e7dd97cdcb7..413de4e25c83 100644 --- a/cui/source/inc/cfgutil.hxx +++ b/cui/source/inc/cfgutil.hxx @@ -129,7 +129,6 @@ class SfxConfigGroupListBox : public SvTreeListBox std::unique_ptr<SvxConfigGroupBoxResource_Impl> xImp; VclPtr<SfxConfigFunctionListBox> pFunctionListBox; SfxGroupInfoArr_Impl aArr; - SaveInData* m_pImageProvider; OUString m_sModuleLongName; css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::frame::XFrame > m_xFrame; |