diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-19 16:48:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-19 16:48:59 +0000 |
commit | a0f911669be348a5539687e4ebe25446d526b2a8 (patch) | |
tree | 3736d26027076c0b7a51cf30bcfc7ee4e7b830bc /sfx2 | |
parent | 53af02a79676caff371a8a4c9b7afcb9b94e01ce (diff) |
cppcheck: the scope of this variable can be reduced
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 521ec7860fde..874c6fd01620 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] ) ) |