summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-30 09:23:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-30 12:18:04 +0100
commit14b366e57a904c2c0d04804f15d8daf755f14541 (patch)
tree5997a5f1f60a5e0d418708948b408221ef50586c /cui/source
parentcabf739612a0e979ebcf76f40a24e66a354b10a5 (diff)
loplugin:singlevalfields
Change-Id: I70dc861573fd1b3d799c88aa2a6d9a3eda0e2a43 Reviewed-on: https://gerrit.libreoffice.org/64327 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/customize/cfgutil.cxx16
-rw-r--r--cui/source/inc/cfgutil.hxx2
2 files changed, 5 insertions, 13 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index f0fa0ca6ab81..92bc0590f7e7 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -442,10 +442,6 @@ SvxConfigGroupBoxResource_Impl::SvxConfigGroupBoxResource_Impl() :
struct CuiConfigGroupBoxResource_Impl
{
- OUString m_hdImage;
- OUString m_libImage;
- OUString m_macImage;
- OUString m_docImage;
OUString m_sMyMacros;
OUString m_sProdMacros;
OUString m_sMacros;
@@ -456,10 +452,6 @@ struct CuiConfigGroupBoxResource_Impl
};
CuiConfigGroupBoxResource_Impl::CuiConfigGroupBoxResource_Impl() :
- m_hdImage(RID_CUIBMP_HARDDISK),
- m_libImage(RID_CUIBMP_LIB),
- m_macImage(RID_CUIBMP_MACRO),
- m_docImage(RID_CUIBMP_DOC),
m_sMyMacros(CuiResId(RID_SVXSTR_MYMACROS)),
m_sProdMacros(CuiResId(RID_SVXSTR_PRODMACROS)),
m_sMacros(CuiResId(RID_SVXSTR_BASICMACROS)),
@@ -1493,7 +1485,7 @@ OUString CuiConfigGroupListBox::GetImage(
{
if (node->getName() == "user" || node->getName() == "share" )
{
- aImage = xImp->m_hdImage;
+ aImage = RID_CUIBMP_HARDDISK;
}
else
{
@@ -1530,16 +1522,16 @@ OUString CuiConfigGroupListBox::GetImage(
}
else
{
- aImage = xImp->m_docImage;
+ aImage = RID_CUIBMP_DOC;
}
}
}
else
{
if( node->getType() == browse::BrowseNodeTypes::SCRIPT )
- aImage = xImp->m_macImage;
+ aImage = RID_CUIBMP_MACRO;
else
- aImage = xImp->m_libImage;
+ aImage = RID_CUIBMP_LIB;
}
return aImage;
}
diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx
index a0ed8437e750..49f0c7ae060f 100644
--- a/cui/source/inc/cfgutil.hxx
+++ b/cui/source/inc/cfgutil.hxx
@@ -228,7 +228,7 @@ class CuiConfigGroupListBox
SfxStylesInfo_Impl* m_pStylesInfo;
std::unique_ptr<weld::TreeView> m_xTreeView;
- OUString GetImage(
+ static OUString GetImage(
const css::uno::Reference< css::script::browse::XBrowseNode >& node,
css::uno::Reference< css::uno::XComponentContext > const & xCtx,
bool bIsRootNode);