diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-08-25 20:52:48 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-09-09 21:07:54 +0200 |
commit | c08c3807fe1a2c4a08b542125ee9f40f0f7f07fe (patch) | |
tree | 8835bccd4c8c3119747c0b2af8a59cc60a0c8ef8 /sc | |
parent | d2fdf0610792f187f313e7ec64fa8049b814cb27 (diff) |
Reduce scope
Change-Id: Id4f6e3dd2e9acdc8586e59a26b2d4ac6b13980dd
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xlformula.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xlformula.cxx b/sc/source/filter/excel/xlformula.cxx index e5b5bc3061c3..4d1774d9aed7 100644 --- a/sc/source/filter/excel/xlformula.cxx +++ b/sc/source/filter/excel/xlformula.cxx @@ -873,7 +873,6 @@ bool XclTokenArrayHelper::GetString( OUString& rString, const ScTokenArray& rScT bool XclTokenArrayHelper::GetStringList( OUString& rStringList, const ScTokenArray& rScTokArr, sal_Unicode cSep ) { bool bRet = true; - OUString aString; XclTokenArrayIterator aIt( rScTokArr, true ); enum { STATE_START, STATE_STR, STATE_SEP, STATE_END } eState = STATE_START; while( eState != STATE_END ) switch( eState ) @@ -882,10 +881,13 @@ bool XclTokenArrayHelper::GetStringList( OUString& rStringList, const ScTokenArr eState = aIt.Is() ? STATE_STR : STATE_END; break; case STATE_STR: + { + OUString aString; bRet = GetTokenString( aString, *aIt ); if( bRet ) rStringList += aString ; eState = (bRet && (++aIt).Is()) ? STATE_SEP : STATE_END; - break; + break; + } case STATE_SEP: bRet = aIt->GetOpCode() == ocSep; if( bRet ) rStringList += OUStringLiteral1(cSep); |