diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 21:09:59 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 21:28:08 +0100 |
commit | 5ea58f534b9226ef8f5c9589066ce20e3c64e0d8 (patch) | |
tree | 2a2bbad144a56854b404510a9191845eb7646e40 /editeng/source/misc | |
parent | d24134b6a2e6a557bfa17f521e18a01b17e24d98 (diff) |
bool improvements
Change-Id: Ic6488ac278cac2d1d7e240abff545f9ea0b8eafe
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 6 | ||||
-rw-r--r-- | editeng/source/misc/txtrange.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 83a470710727..a961b2ee0992 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -94,19 +94,19 @@ TYPEINIT0(SvxAutoCorrect) typedef SvxAutoCorrectLanguageLists* SvxAutoCorrectLanguageListsPtr; -static inline int IsWordDelim( const sal_Unicode c ) +static inline bool IsWordDelim( const sal_Unicode c ) { return ' ' == c || '\t' == c || 0x0a == c || cNonBreakingSpace == c || 0x2011 == c || 0x1 == c; } -static inline int IsLowerLetter( sal_Int32 nCharType ) +static inline bool IsLowerLetter( sal_Int32 nCharType ) { return CharClass::isLetterType( nCharType ) && 0 == ( ::com::sun::star::i18n::KCharacterType::UPPER & nCharType); } -static inline int IsUpperLetter( sal_Int32 nCharType ) +static inline bool IsUpperLetter( sal_Int32 nCharType ) { return CharClass::isLetterType( nCharType ) && 0 == ( ::com::sun::star::i18n::KCharacterType::LOWER & nCharType); diff --git a/editeng/source/misc/txtrange.cxx b/editeng/source/misc/txtrange.cxx index 79c2ae7f25e7..c67e8d8496dc 100644 --- a/editeng/source/misc/txtrange.cxx +++ b/editeng/source/misc/txtrange.cxx @@ -287,7 +287,7 @@ void SvxBoundArgs::NoteRange( bool bToggle ) aBoolArr.erase( aBoolArr.begin() + nMaxIdx, aBoolArr.begin() + (nMaxIdx + nDiff) ); } DBG_ASSERT( nMaxIdx < aBoolArr.size(), "NoteRange: Too much deleted" ); - aBoolArr[ nMaxIdx ] = aBoolArr[ nMaxIdx ] ^ bToggle; + aBoolArr[ nMaxIdx ] = aBoolArr[ nMaxIdx ] != bToggle; } } |