[Libreoffice-commits] core.git: l10ntools/source
Stephan Bergmann
sbergman at redhat.com
Mon Feb 27 12:01:26 UTC 2017
l10ntools/source/export.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 431708c5eb27e6fa3675d17246891d717c0713ec
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Feb 27 13:00:55 2017 +0100
loplugin:loopvartoosmall
Change-Id: I580639aecc4cf6a214a7aaba3bbe92f7459856d5
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 47f46a8..37f0d64 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -347,8 +347,7 @@ void Export::Execute( int nToken, const char * pToken )
sal_uInt16 nOpen = 0;
sal_uInt16 nClose = 0;
bool bReadOver1 = false;
- sal_uInt16 i = 0;
- for ( i = 0; i < sToken.getLength(); i++ ) {
+ for ( sal_Int32 i = 0; i < sToken.getLength(); i++ ) {
if ( sToken[i] == '"' )
bReadOver1 = !bReadOver1;
if ( !bReadOver1 && ( sToken[i] == '{' ))
@@ -356,7 +355,7 @@ void Export::Execute( int nToken, const char * pToken )
}
bReadOver1 = false;
- for ( i = 0; i < sToken.getLength(); i++ ) {
+ for ( sal_Int32 i = 0; i < sToken.getLength(); i++ ) {
if ( sToken[i] == '"' )
bReadOver1 = !bReadOver1;
if ( !bReadOver1 && ( sToken[i] == '}' ))
More information about the Libreoffice-commits
mailing list