diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-22 12:48:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-23 11:11:47 +0200 |
commit | e4f690b0389263c35f83fa8b58382c6518d00f62 (patch) | |
tree | e89a15c8f29c51394ff539eabc6e122ab6d1c70f /i18npool/source/breakiterator/breakiterator_unicode.cxx | |
parent | fc06e00fd4ae2b82d827163e72eb6824e88dbd40 (diff) |
i18npool: sal_Bool->bool
Change-Id: Id73ee64dbf8586743f0e436e004e663a65d4548f
Diffstat (limited to 'i18npool/source/breakiterator/breakiterator_unicode.cxx')
-rw-r--r-- | i18npool/source/breakiterator/breakiterator_unicode.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx index 205ff6c9f04c..126ac7a8d354 100644 --- a/i18npool/source/breakiterator/breakiterator_unicode.cxx +++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx @@ -80,7 +80,7 @@ class OOoRuleBasedBreakIterator : public RuleBasedBreakIterator void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const com::sun::star::lang::Locale& rLocale, sal_Int16 rBreakType, sal_Int16 nWordType, const sal_Char *rule, const OUString& rText) throw(uno::RuntimeException) { - sal_Bool newBreak = sal_False; + bool newBreak = false; UErrorCode status = U_ZERO_ERROR; sal_Int16 breakType = 0; switch (rBreakType) { @@ -179,7 +179,7 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const com::sun::star:: } if (icuBI->aBreakIterator) { icuBI->maLocale=rLocale; - newBreak=sal_True; + newBreak=true; } else { throw uno::RuntimeException(); } @@ -371,7 +371,7 @@ LineBreakResults SAL_CALL BreakIterator_Unicode::getLineBreak( loadICUBreakIterator(rLocale, LOAD_LINE_BREAKITERATOR, 0, lineRule, Text); - sal_Bool GlueSpace=sal_True; + bool GlueSpace=true; while (GlueSpace) { if (line.aBreakIterator->preceding(nStartPos + 1) == nStartPos) { //Line boundary break lbr.breakIndex = nStartPos; @@ -423,15 +423,15 @@ LineBreakResults SAL_CALL BreakIterator_Unicode::getLineBreak( } #define WJ 0x2060 // Word Joiner - GlueSpace=sal_False; + GlueSpace=false; if (lbr.breakType == BreakType::WORDBOUNDARY) { nStartPos = lbr.breakIndex; if (Text[nStartPos--] == WJ) - GlueSpace=sal_True; + GlueSpace=true; while (nStartPos >= 0 && (u_isWhitespace(Text.iterateCodePoints(&nStartPos, 0)) || Text[nStartPos] == WJ)) { if (Text[nStartPos--] == WJ) - GlueSpace=sal_True; + GlueSpace=true; } if (GlueSpace && nStartPos < 0) { lbr.breakIndex = 0; |