diff options
-rw-r--r-- | i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx | 4 | ||||
-rw-r--r-- | i18npool/source/localedata/localedata.cxx | 4 | ||||
-rw-r--r-- | i18npool/source/search/textsearch.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx index 1694f32da925..9afb85cc8960 100644 --- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx +++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx @@ -632,7 +632,7 @@ DefaultNumberingProvider::makeNumberingString( const Sequence<beans::PropertyVal return OUString(""); // ignore prefix and suffix case PAGE_DESCRIPTOR: case BITMAP: - OSL_ASSERT(0); + OSL_ASSERT(false); throw IllegalArgumentException(); case CHARS_UPPER_LETTER_N: lcl_formatChars1( upperLetter, 26, number-1, result ); // 1=>A, 2=>B, ..., 26=>Z, 27=>AA, 28=>BB, ... @@ -849,7 +849,7 @@ DefaultNumberingProvider::makeNumberingString( const Sequence<beans::PropertyVal break; default: - OSL_ASSERT(0); + OSL_ASSERT(false); throw IllegalArgumentException(); } diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx index 37748ad23213..e0a1bc91bafe 100644 --- a/i18npool/source/localedata/localedata.cxx +++ b/i18npool/source/localedata/localedata.cxx @@ -1327,7 +1327,7 @@ LocaleDataImpl::getContinuousNumberingLevels( const lang::Locale& rLocale ) thro rVal.Value <<= (sal_Int16) sVal.toInt32(); break; default: - OSL_ASSERT(0); + OSL_ASSERT(false); } } } @@ -1440,7 +1440,7 @@ LocaleDataImpl::getOutlineNumberingLevels( const lang::Locale& rLocale ) throw(R case 10: level[j].sTransliteration = tmp; break; case 11: level[j].nNatNum = tmp.toInt32(); break; default: - OSL_ASSERT(0); + OSL_ASSERT(false); } } } 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; } |