[Libreoffice-commits] .: editeng/source

Kohei Yoshida kohei at kemper.freedesktop.org
Fri Jul 22 11:21:52 PDT 2011


 editeng/source/editeng/eehtml.cxx |   32 ++++++++++++++++----------------
 editeng/source/editeng/eehtml.hxx |    4 ++--
 2 files changed, 18 insertions(+), 18 deletions(-)

New commits:
commit 5c10e9985ca589e182db1a9436ca6570d222e5f3
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Fri Jul 22 14:21:21 2011 -0400

    Eradicated the rest of sal_Bool usage in these files.

diff --git a/editeng/source/editeng/eehtml.cxx b/editeng/source/editeng/eehtml.cxx
index 8d7ba8e..a13e97b 100644
--- a/editeng/source/editeng/eehtml.cxx
+++ b/editeng/source/editeng/eehtml.cxx
@@ -74,7 +74,7 @@ EditHTMLParser::EditHTMLParser( SvStream& rIn, const String& rBaseURL, SvKeyValu
     SetSrcEncoding( GetExtendedCompatibilityTextEncoding(  RTL_TEXTENCODING_ISO_8859_1 ) );
 
     // If the file starts with a BOM, switch to UCS2.
-    SetSwitchToUCS2( sal_True );
+    SetSwitchToUCS2( true );
 
     if ( pHTTPHeaderAttrs )
         SetEncodingByHTTPHeader( pHTTPHeaderAttrs );
@@ -129,7 +129,7 @@ void EditHTMLParser::NextToken( int nToken )
     {
         const HTMLOptions *_pOptions = GetOptions();
         sal_uInt16 nArrLen = _pOptions->Count();
-        sal_Bool bEquiv = sal_False;
+        bool bEquiv = false;
         for ( sal_uInt16 i = 0; i < nArrLen; i++ )
         {
             const HTMLOption *pOption = (*_pOptions)[i];
@@ -137,7 +137,7 @@ void EditHTMLParser::NextToken( int nToken )
             {
                 case HTML_O_HTTPEQUIV:
                 {
-                    bEquiv = sal_True;
+                    bEquiv = true;
                 }
                 break;
                 case HTML_O_CONTENT:
@@ -194,7 +194,7 @@ void EditHTMLParser::NextToken( int nToken )
         if (!bInTitle)
         {
             if ( !bInPara )
-                StartPara( sal_False );
+                StartPara( false );
 
             String aText = aToken;
             if ( aText.Len() && ( aText.GetChar( 0 ) == ' ' )
@@ -243,13 +243,13 @@ void EditHTMLParser::NextToken( int nToken )
 
     case HTML_PARABREAK_ON:
         if( bInPara && HasTextInCurrentPara() )
-            EndPara( sal_True );
-        StartPara( sal_True );
+            EndPara( true );
+        StartPara( true );
         break;
 
     case HTML_PARABREAK_OFF:
         if( bInPara )
-            EndPara( sal_True );
+            EndPara( true );
         break;
 
     case HTML_HEAD1_ON:
@@ -278,7 +278,7 @@ void EditHTMLParser::NextToken( int nToken )
     case HTML_XMP_ON:
     case HTML_LISTING_ON:
     {
-        StartPara( sal_True );
+        StartPara( true );
         ImpSetStyleSheet( STYLE_PRE );
     }
     break;
@@ -317,10 +317,10 @@ void EditHTMLParser::NextToken( int nToken )
     case HTML_ORDERLIST_ON:
     case HTML_UNORDERLIST_ON:
     {
-        sal_Bool bHasText = HasTextInCurrentPara();
+        bool bHasText = HasTextInCurrentPara();
         if ( bHasText )
             ImpInsertParaBreak();
-        StartPara( sal_False );
+        StartPara( false );
     }
     break;
 
@@ -336,7 +336,7 @@ void EditHTMLParser::NextToken( int nToken )
     case HTML_DD_OFF:
     case HTML_DT_OFF:
     case HTML_ORDERLIST_OFF:
-    case HTML_UNORDERLIST_OFF:	EndPara( sal_False );
+    case HTML_UNORDERLIST_OFF:	EndPara( false );
                                 break;
 
     case HTML_TABLEROW_ON:
@@ -707,7 +707,7 @@ void EditHTMLParser::SkipGroup( int nEndToken )
     }
 }
 
-void EditHTMLParser::StartPara( sal_Bool bReal )
+void EditHTMLParser::StartPara( bool bReal )
 {
     if ( bReal )
     {
@@ -740,11 +740,11 @@ void EditHTMLParser::StartPara( sal_Bool bReal )
     bInPara = true;
 }
 
-void EditHTMLParser::EndPara( sal_Bool )
+void EditHTMLParser::EndPara( bool )
 {
     if ( bInPara )
     {
-        sal_Bool bHasText = HasTextInCurrentPara();
+        bool bHasText = HasTextInCurrentPara();
         if ( bHasText )
             ImpInsertParaBreak();
     }
@@ -825,7 +825,7 @@ void EditHTMLParser::AnchorEnd()
 void EditHTMLParser::HeadingStart( int nToken )
 {
     bWasInPara = bInPara;
-    StartPara( sal_False );
+    StartPara( false );
 
     if ( bWasInPara && HasTextInCurrentPara() )
         ImpInsertParaBreak();
@@ -838,7 +838,7 @@ void EditHTMLParser::HeadingStart( int nToken )
 
 void EditHTMLParser::HeadingEnd( int )
 {
-    EndPara( sal_False );
+    EndPara( false );
     ImpSetStyleSheet( 0 );
 
     if ( bWasInPara )
diff --git a/editeng/source/editeng/eehtml.hxx b/editeng/source/editeng/eehtml.hxx
index 4bc4853..a9a940b 100644
--- a/editeng/source/editeng/eehtml.hxx
+++ b/editeng/source/editeng/eehtml.hxx
@@ -64,8 +64,8 @@ private:
     sal_uInt8					nBulletLevel;
     sal_uInt8					nNumberingLevel;
 
-    void					StartPara( sal_Bool bReal );
-    void					EndPara( sal_Bool bReal );
+    void					StartPara( bool bReal );
+    void					EndPara( bool bReal );
     void					AnchorStart();
     void					AnchorEnd();
     void					HeadingStart( int nToken );


More information about the Libreoffice-commits mailing list