[Libreoffice-commits] .: cui/source

Caolán McNamara caolan at kemper.freedesktop.org
Sun Dec 5 04:12:01 PST 2010


 cui/source/tabpages/tparea.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3ba851798a2ab060a64a3e5b4974c5016e40f881
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Dec 5 12:11:54 2010 +0000

    cppcheck: the scope of this variable can be reduced

diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx
index ffb0f48..eef41b4 100644
--- a/cui/source/tabpages/tparea.cxx
+++ b/cui/source/tabpages/tparea.cxx
@@ -779,7 +779,6 @@ void SvxAreaTabPage::Construct()
 
 void SvxAreaTabPage::ActivatePage( const SfxItemSet& rSet )
 {
-    USHORT _nPos = 0;
     USHORT nCount;
     SFX_ITEMSET_ARG (&rSet,pPageTypeItem,SfxUInt16Item,SID_PAGE_TYPE,sal_False);
     SFX_ITEMSET_ARG (&rSet,pPosItem,SfxUInt16Item,SID_TABPAGE_POS,sal_False);
@@ -793,6 +792,7 @@ void SvxAreaTabPage::ActivatePage( const SfxItemSet& rSet )
 
         if( pColorTab )
         {
+            USHORT _nPos = 0;
             // Bitmapliste
             if( *pnBitmapListState )
             {


More information about the Libreoffice-commits mailing list