[Libreoffice-commits] .: sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Dec 13 00:58:04 PST 2010


 sw/source/ui/index/cnttab.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 503fdfdb5ddc19a779527f9fd5c5392edf693191
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Dec 13 08:57:57 2010 +0000

    WaE, shadowed variable

diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 3e59eda..fbd65bb 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -3359,7 +3359,6 @@ IMPL_LINK(SwTokenWindow, ScrollHdl, ImageButton*, pBtn )
         if(nMove)
         {
             // move the complete list
-            Control* pCtrl = NULL;
             for ( TOXControlList::iterator it = aControlList.begin(); it != aControlList.end(); ++it )
             {
                 Control* pCtrl = *it;
@@ -3368,7 +3367,7 @@ IMPL_LINK(SwTokenWindow, ScrollHdl, ImageButton*, pBtn )
                 pCtrl->SetPosPixel(aPos);
             }
             aLeftScrollWin.Enable(aControlList.front()->GetPosPixel().X() < 0);
-            pCtrl = aControlList.back();
+            Control* pCtrl = aControlList.back();
             aRightScrollWin.Enable((pCtrl->GetPosPixel().X() + pCtrl->GetSizePixel().Width()) > nSpace);
 
 #if OSL_DEBUG_LEVEL > 1


More information about the Libreoffice-commits mailing list