diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-04 23:53:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-05 10:14:48 +0100 |
commit | c03d4016e916ccf309eaa8a9e3a0b503b5fc1232 (patch) | |
tree | eefe527d8cd51d7e89e3b143486f6024dd2facb3 /sd | |
parent | a0d627639d24056337174dec65a5defba88a41f3 (diff) |
reduce scope of i
Change-Id: I41e1c0ae2aabbf760e5f8b3142190f82fd6698c2
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/toolpanel/TestPanel.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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)); |