summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-28 20:01:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-28 20:26:27 +0100
commit63b891d3a6186a9bcd7770e05edd02317fe2baa0 (patch)
tree3a3def08a71e2fb36712572cb08af5171bfa095d /i18npool
parentdc61cc8c96dc7286076185b1fb09c7c9887601e0 (diff)
bool improvements
Change-Id: I64b038ad3b8d423dad6707fb0b2fd2127b2050a3
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx4
-rw-r--r--i18npool/source/localedata/localedata.cxx4
-rw-r--r--i18npool/source/search/textsearch.cxx4
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;
}