From c03d4016e916ccf309eaa8a9e3a0b503b5fc1232 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 4 Jun 2012 23:53:58 +0100 Subject: reduce scope of i Change-Id: I41e1c0ae2aabbf760e5f8b3142190f82fd6698c2 --- sd/source/ui/toolpanel/TestPanel.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/toolpanel/TestPanel.cxx b/sd/source/ui/toolpanel/TestPanel.cxx index f2f8902381e2..45932d61fd85 100644 --- a/sd/source/ui/toolpanel/TestPanel.cxx +++ b/sd/source/ui/toolpanel/TestPanel.cxx @@ -116,8 +116,7 @@ TestPanel::TestPanel (::Window& i_rParent) ScrollPanel* pScrollPanel = new ScrollPanel (this); ListBox* pBox = new ListBox (pScrollPanel->GetWindow()); - int i; - for (i=1; i<=20; i++) + for (sal_Int32 i=1; i<=20; i++) { XubString aString (XubString::CreateFromAscii("Text ")); aString.Append (XubString::CreateFromInt32(i)); @@ -131,7 +130,7 @@ TestPanel::TestPanel (::Window& i_rParent) ""); pBox = new ListBox (pScrollPanel->GetWindow()); - for (i=1; i<=20; i++) + for (sal_Int32 i=1; i<=20; i++) { XubString aString (XubString::CreateFromAscii("More Text ")); aString.Append (XubString::CreateFromInt32(i)); -- cgit