summaryrefslogtreecommitdiff
path: root/sw/source/core/text/txthyph.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-02-15 17:39:35 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-02-16 22:52:30 +0100
commit781b17a577991b8a830038ab0e61de0c048f11aa (patch)
tree3e99667534cab5c1e687432d9e5e7959c904e68c /sw/source/core/text/txthyph.cxx
parent54cbd46dc52c51dda1594ee090f0619a7b92d56a (diff)
sal_Bool to bool
Change-Id: I98da667e406aef18e0f8b8bdb9b380cf76b36952
Diffstat (limited to 'sw/source/core/text/txthyph.cxx')
-rw-r--r--sw/source/core/text/txthyph.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/text/txthyph.cxx b/sw/source/core/text/txthyph.cxx
index ed18cee3d60b..5aef79091ee5 100644
--- a/sw/source/core/text/txthyph.cxx
+++ b/sw/source/core/text/txthyph.cxx
@@ -61,19 +61,19 @@ Reference< XHyphenatedWord > SwTxtFormatInfo::HyphWord(
* Wir formatieren eine Zeile fuer die interaktive Trennung
*************************************************************************/
-sal_Bool SwTxtFrm::Hyphenate( SwInterHyphInfo &rHyphInf )
+bool SwTxtFrm::Hyphenate( SwInterHyphInfo &rHyphInf )
{
OSL_ENSURE( ! IsVertical() || ! IsSwapped(),"swapped frame at SwTxtFrm::Hyphenate" );
if( !g_pBreakIt->GetBreakIter().is() )
- return sal_False;
+ return false;
// Wir machen den Laden erstmal dicht:
OSL_ENSURE( !IsLocked(), "SwTxtFrm::Hyphenate: this is locked" );
// 4935: Der frame::Frame muss eine gueltige SSize haben!
Calc();
GetFormatted();
- sal_Bool bRet = sal_False;
+ bool bRet = false;
if( !IsEmpty() )
{
// Wir muessen die Trennung immer einschalten.
@@ -230,7 +230,7 @@ bool SwTxtFormatter::Hyphenate( SwInterHyphInfo &rHyphInf )
Boundary aBound =
g_pBreakIt->GetBreakIter()->getWordBoundary( rInf.GetTxt(), nWrdStart,
- g_pBreakIt->GetLocale( rInf.GetFont()->GetLanguage() ), WordType::DICTIONARY_WORD, sal_True );
+ g_pBreakIt->GetLocale( rInf.GetFont()->GetLanguage() ), WordType::DICTIONARY_WORD, true );
nWrdStart = aBound.startPos;
nLen = aBound.endPos - nWrdStart;
if ( nLen == 0 )
@@ -481,12 +481,12 @@ void SwSoftHyphPortion::Paint( const SwTxtPaintInfo &rInf ) const
* Fall 1: "Au-to"
* 1) {Au}{-}{to}, {to} passt nicht mehr => Underflow
* 2) {-} ruft Hyphenate => keine Alternative
- * 3) FormatEOL() und bFull = sal_True
+ * 3) FormatEOL() und bFull = true
*
* Fall 2: "Zuc-ker"
* 1) {Zuc}{-}{ker}, {ker} passt nicht mehr => Underflow
* 2) {-} ruft Hyphenate => Alternative!
- * 3) Underflow() und bFull = sal_True
+ * 3) Underflow() und bFull = true
* 4) {Zuc} ruft Hyphenate => {Zuk}{-}{ker}
*/