[Libreoffice-commits] .: basctl/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Fri Nov 18 02:40:19 PST 2011


 basctl/source/basicide/linenumberwindow.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 28590197df79b89ff15c43636b26dc1dde7a66c8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Nov 18 11:39:03 2011 +0100

    -Werror=shadow fix

diff --git a/basctl/source/basicide/linenumberwindow.cxx b/basctl/source/basicide/linenumberwindow.cxx
index d4f606b..2f593e9 100644
--- a/basctl/source/basicide/linenumberwindow.cxx
+++ b/basctl/source/basicide/linenumberwindow.cxx
@@ -57,8 +57,8 @@ void LineNumberWindow::Paint( const Rectangle& )
     }
 
     sal_Int64 y = (nStartLine - 1) * nLineHeight;
-    for(int i = nStartLine; i <= nEndLine; ++i, y += nLineHeight)
-        DrawText(Point(0, y - m_nCurYOffset), String::CreateFromInt32(i));
+    for(int n = nStartLine; n <= nEndLine; ++n, y += nLineHeight)
+        DrawText(Point(0, y - m_nCurYOffset), String::CreateFromInt32(n));
 }
 
 void LineNumberWindow::DataChanged(DataChangedEvent const & rDCEvt)


More information about the Libreoffice-commits mailing list