From cd252e2f014c91ca01bf48cf716f9c984214f679 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 30 Oct 2016 20:15:26 +0100 Subject: [PATCH] cppcheck unreadVariable: n since initial commit d02f75a8c36705924ddd6a5921fe3012fafce812 Change-Id: I51d56485f4b6224a1b7ce16b0788e7e884d57b37 Reviewed-on: https://gerrit.libreoffice.org/30408 Reviewed-by: Jochen Nitschke Tested-by: Jochen Nitschke --- sd/source/ui/sidebar/LayoutMenu.cxx | 2 -- 1 file changed, 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++; } }