sw/source/ui/config/optcomp.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit e8c0a9ab7458d66b3ef015b40996b426f5e5b58a Author: Matteo Casalin <matteo.casa...@yahoo.com> Date: Wed Sep 18 01:10:46 2013 +0200 Reduce scope of some local variables Change-Id: I36cedb18a00dfdee1058823fd2461ad45bc886e3 Reviewed-on: https://gerrit.libreoffice.org/6026 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/ui/config/optcomp.cxx b/sw/source/ui/config/optcomp.cxx index 5a52f5f..d6029e4 100644 --- a/sw/source/ui/config/optcomp.cxx +++ b/sw/source/ui/config/optcomp.cxx @@ -247,11 +247,12 @@ void SwCompatibilityOptPage::InitControls( const SfxItemSet& rSet ) bool bUseOurTextWrapping = false; bool bConsiderWrappingStyle = false; bool bExpandWordSpace = false; - int i, j, nCount = aList.getLength(); - for ( i = 0; i < nCount; ++i ) + const sal_Int32 nCount = aList.getLength(); + for ( sal_Int32 i = 0; i < nCount; ++i ) { const Sequence< PropertyValue >& rEntry = aList[i]; - for ( j = 0; j < rEntry.getLength(); j++ ) + const sal_Int32 nEntries = rEntry.getLength(); + for ( sal_Int32 j = 0; j < nEntries; j++ ) { PropertyValue aValue = rEntry[j]; if ( aValue.Name == COMPATIBILITY_PROPERTYNAME_NAME )
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits