Reduce scope
Change-Id: Id4f6e3dd2e9acdc8586e59a26b2d4ac6b13980dd
This commit is contained in:
parent
d2fdf06107
commit
c08c3807fe
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue