diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:01:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:27 +0100 |
commit | 63b891d3a6186a9bcd7770e05edd02317fe2baa0 (patch) | |
tree | 3a3def08a71e2fb36712572cb08af5171bfa095d /i18npool/source/search | |
parent | dc61cc8c96dc7286076185b1fb09c7c9887601e0 (diff) |
bool improvements
Change-Id: I64b038ad3b8d423dad6707fb0b2fd2127b2050a3
Diffstat (limited to 'i18npool/source/search')
-rw-r--r-- | i18npool/source/search/textsearch.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx index 27300732493b..62e38d775736 100644 --- a/i18npool/source/search/textsearch.cxx +++ b/i18npool/source/search/textsearch.cxx @@ -428,7 +428,7 @@ SearchResult TextSearch::searchBackward( const OUString& searchStr, sal_Int32 st bool TextSearch::IsDelimiter( const OUString& rStr, sal_Int32 nPos ) const { - bool bRet = 1; + bool bRet = true; if( '\x7f' != rStr[nPos]) { if ( !xCharClass.is() ) @@ -437,7 +437,7 @@ bool TextSearch::IsDelimiter( const OUString& rStr, sal_Int32 nPos ) const aSrchPara.Locale ); if( 0 != (( KCharacterType::DIGIT | KCharacterType::ALPHA | KCharacterType::LETTER ) & nCType ) ) - bRet = 0; + bRet = false; } return bRet; } |