diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 09:26:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 10:40:56 +0200 |
commit | 27fa7eff1d06914750fbda2582c655ddbb21dfa3 (patch) | |
tree | dfdab06999530f2f5054b78b809598e240e163a7 /cui/source/customize/cfgutil.cxx | |
parent | 4c0198b02c4a514bc61772d8c671c47c9553fd7a (diff) |
loplugin:oncevar in cui
Change-Id: I1bbd37a82f238327b5e52110c62cdd2a9b0a9c14
Reviewed-on: https://gerrit.libreoffice.org/39001
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/customize/cfgutil.cxx')
-rw-r--r-- | cui/source/customize/cfgutil.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index d81813ee8193..6e2019ba1ce8 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -751,9 +751,7 @@ Image SfxConfigGroupListBox::GetImage( Image aImage; if ( bIsRootNode ) { - OUString user("user"); - OUString share("share"); - if (node->getName().equals( user ) || node->getName().equals(share ) ) + if (node->getName() == "user" || node->getName() == "share" ) { aImage = xImp->m_hdImage; } |