[Libreoffice-commits] .: cui/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Nov 23 13:36:22 PST 2010


 cui/source/customize/macropg.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit a737f4b13f0a9e5568c46ebcd2783ef536bd9cf1
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Nov 23 21:35:55 2010 +0000

    cppcheck: The scope of the variable nTmpSz can be reduced

diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx
index 8e099a8..169113d 100644
--- a/cui/source/customize/macropg.cxx
+++ b/cui/source/customize/macropg.cxx
@@ -124,7 +124,6 @@ IMPL_LINK( _HeaderTabListBox, HeaderEndDrag_Impl, HeaderBar*, pBar )
     {
         Size    aSz;
         USHORT    _nTabs = maHeaderBar.GetItemCount();
-        long    nTmpSz = 0;
         long    nWidth = maHeaderBar.GetItemSize( ITEMID_EVENT );
         long    nBarWidth = maHeaderBar.GetSizePixel().Width();
 
@@ -134,7 +133,7 @@ IMPL_LINK( _HeaderTabListBox, HeaderEndDrag_Impl, HeaderBar*, pBar )
             maHeaderBar.SetItemSize( ITEMID_EVENT, nBarWidth - TAB_WIDTH_MIN );
 
         {
-            long    _nWidth;
+            long _nWidth, nTmpSz = 0;
             for( USHORT i = 1 ; i < _nTabs ; ++i )
             {
                 _nWidth = maHeaderBar.GetItemSize( i );


More information about the Libreoffice-commits mailing list