Rewrite some (trivial) assignments inside if/while conditions: editeng

Change-Id: I374fcd08bdeb37ff542447142b1b164886e0e5db
This commit is contained in:
Stephan Bergmann
2016-11-29 17:21:18 +01:00
parent 621687e8ed
commit bffac17a82

View File

@@ -857,7 +857,8 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
else
break;
}
} while( ! ( bAtStart = (pStart == pStr) ) );
bAtStart = (pStart == pStr);
} while( !bAtStart );
if (!pWordStt)
return false; // no character to be replaced
@@ -923,7 +924,8 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
--pStr;
if (!IsAutoCapitalizeWordDelim(*pStr))
break;
} while( ! ( bAtStart = (pStart == pStr) ) );
bAtStart = (pStart == pStr);
} while( !bAtStart );
if( bAtStart )
return false; // no valid separator -> no replacement