summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-25 19:11:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-26 09:17:47 +0200
commit2dbe6a2d57956be392966c363d03f54cb68dd4fa (patch)
tree148065e98b7470331edaa83b95c85eae6e179ed2 /sfx2/source/sidebar
parentd416a5ff59b31dd7250d392278c43f66cdb81e35 (diff)
loplugin:oncevar in sfx2
Change-Id: I9aadcb9a12ef9b0c3f93ea255f2542e51d31fbf7 Reviewed-on: https://gerrit.libreoffice.org/39242 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r--sfx2/source/sidebar/Theme.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx
index 2b29083f5bd9..6b130d984545 100644
--- a/sfx2/source/sidebar/Theme.cxx
+++ b/sfx2/source/sidebar/Theme.cxx
@@ -551,7 +551,8 @@ css::uno::Sequence<css::beans::Property> SAL_CALL Theme::getProperties()
{
::std::vector<beans::Property> aProperties;
- for (sal_Int32 nItem(Begin_),nEnd(End_); nItem!=nEnd; ++nItem)
+ sal_Int32 const nEnd(End_);
+ for (sal_Int32 nItem(Begin_); nItem!=nEnd; ++nItem)
{
const ThemeItem eItem (static_cast<ThemeItem>(nItem));
const PropertyType eType (GetPropertyType(eItem));