Kaydet (Commit) cd4628ae authored tarafından Matteo Casalin's avatar Matteo Casalin

Clarify loop condition

Change-Id: Ia6131a9964288e781bb76d59e24591b3cb375db9
üst c936dace
......@@ -1031,12 +1031,16 @@ sal_uInt16 SwTxtNode::GetWidthOfLeadingTabs() const
sal_uInt16 nRet = 0;
sal_Int32 nIdx = 0;
sal_Unicode cCh;
while ( nIdx < GetTxt().getLength() &&
( '\t' == ( cCh = GetTxt()[nIdx] ) ||
' ' == cCh ) )
while ( nIdx < GetTxt().getLength() )
{
const sal_Unicode cCh = GetTxt()[nIdx];
if ( cCh!='\t' && cCh!=' ' )
{
break;
}
++nIdx;
}
if ( nIdx > 0 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment