Rewrite some (trivial) assignments inside if/while conditions: editeng
Change-Id: I374fcd08bdeb37ff542447142b1b164886e0e5db
This commit is contained in:
@@ -857,7 +857,8 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
|
|||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} while( ! ( bAtStart = (pStart == pStr) ) );
|
bAtStart = (pStart == pStr);
|
||||||
|
} while( !bAtStart );
|
||||||
|
|
||||||
if (!pWordStt)
|
if (!pWordStt)
|
||||||
return false; // no character to be replaced
|
return false; // no character to be replaced
|
||||||
@@ -923,7 +924,8 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
|
|||||||
--pStr;
|
--pStr;
|
||||||
if (!IsAutoCapitalizeWordDelim(*pStr))
|
if (!IsAutoCapitalizeWordDelim(*pStr))
|
||||||
break;
|
break;
|
||||||
} while( ! ( bAtStart = (pStart == pStr) ) );
|
bAtStart = (pStart == pStr);
|
||||||
|
} while( !bAtStart );
|
||||||
|
|
||||||
if( bAtStart )
|
if( bAtStart )
|
||||||
return false; // no valid separator -> no replacement
|
return false; // no valid separator -> no replacement
|
||||||
|
Reference in New Issue
Block a user