[Libreoffice-commits] .: sfx2/source

Caolán McNamara caolan at kemper.freedesktop.org
Sun Dec 19 08:49:05 PST 2010


 sfx2/source/doc/sfxbasemodel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f854bf9f55fefd83ee24d9f4d3c800ac2de01998
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Dec 19 16:48:59 2010 +0000

    cppcheck: the scope of this variable can be reduced

diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index df77bb6..7410226 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -3092,7 +3092,6 @@ Sequence< ::rtl::OUString > SAL_CALL SfxBaseModel::getDocumentSubStoragesNames()
     SfxModelGuard aGuard( *this );
 
     Sequence< ::rtl::OUString > aResult;
-    sal_Int32 nResultSize = 0;
     sal_Bool bSuccess = sal_False;
     if ( m_pData->m_pObjectShell.Is() )
     {
@@ -3101,6 +3100,7 @@ Sequence< ::rtl::OUString > SAL_CALL SfxBaseModel::getDocumentSubStoragesNames()
         if ( xAccess.is() )
         {
             Sequence< ::rtl::OUString > aTemp = xAccess->getElementNames();
+            sal_Int32 nResultSize = 0;
             for ( sal_Int32 n = 0; n < aTemp.getLength(); n++ )
             {
                 if ( xStorage->isStorageElement( aTemp[n] ) )


More information about the Libreoffice-commits mailing list