diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-11-29 17:21:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-11-29 17:21:18 +0100 |
commit | bffac17a8249416d24986d37a50c5e74a0cb32b2 (patch) | |
tree | 96219973a5d88e95be32549d8a2cfc6227d05678 /editeng | |
parent | 621687e8edae5074bd822e46755c17bb33fbe075 (diff) |
Rewrite some (trivial) assignments inside if/while conditions: editeng
Change-Id: I374fcd08bdeb37ff542447142b1b164886e0e5db
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index ccb6e26db2f2..6317adb4d948 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -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 |