summaryrefslogtreecommitdiffstats
path: root/sd
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-10-30 20:15:26 +0100
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2016-10-30 23:06:36 +0000
commitcd252e2f014c91ca01bf48cf716f9c984214f679 (patch)
tree3a4fda56909e8436c1a3743eccac31b2d44575df /sd
parenttoolbox: don't need "ItemImageOriginal" anymore (diff)
downloadcore-cd252e2f014c91ca01bf48cf716f9c984214f679.tar.gz
core-cd252e2f014c91ca01bf48cf716f9c984214f679.zip
cppcheck unreadVariable: n
since initial commit d02f75a8c36705924ddd6a5921fe3012fafce812 Change-Id: I51d56485f4b6224a1b7ce16b0788e7e884d57b37 Reviewed-on: https://gerrit.libreoffice.org/30408 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/sidebar/LayoutMenu.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx
index 2bbd5131d002..b9b99ba5564d 100644
--- a/sd/source/ui/sidebar/LayoutMenu.cxx
+++ b/sd/source/ui/sidebar/LayoutMenu.cxx
@@ -544,7 +544,6 @@ void LayoutMenu::Fill()
}
Clear();
- int n = 0;
for (sal_uInt16 i=1; pInfo!=nullptr&&pInfo->mnBmpResId!=0; i++,pInfo++)
{
if ((WritingMode_TB_RL != pInfo->meWritingMode) || bVertical)
@@ -556,7 +555,6 @@ void LayoutMenu::Fill()
InsertItem(i, Image(aBmp), SdResId (pInfo->mnStrResId));
SetItemData (i, new AutoLayout(pInfo->maAutoLayout));
- n++;
}
}