[Libreoffice-commits] core.git: sw/source

Joren De Cuyper jorendc at libreoffice.org
Wed Jul 30 01:46:13 PDT 2014


 sw/source/filter/ww8/docxattributeoutput.cxx |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 4a1efd50e28ed9a38820ff8e21a21475a9096ecc
Author: Joren De Cuyper <jorendc at libreoffice.org>
Date:   Wed Jul 30 00:11:51 2014 +0200

    Remove redundant sal_Char *
    
    Change-Id: I82c80134edaf34f1392d06b0bb68ff092652524b
    Reviewed-on: https://gerrit.libreoffice.org/10634
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 4661781..1b08aea 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -6584,18 +6584,18 @@ static void impl_WriteTabElement( FSHelperPtr pSerializer,
     switch (rTab.GetAdjustment())
     {
     case SVX_TAB_ADJUST_RIGHT:
-        pTabElementAttrList->add( FSNS( XML_w, XML_val ), OString( (sal_Char *)"right") );
+        pTabElementAttrList->add( FSNS( XML_w, XML_val ), OString( "right" ) );
         break;
     case SVX_TAB_ADJUST_DECIMAL:
-        pTabElementAttrList->add( FSNS( XML_w, XML_val ), OString( (sal_Char *)"decimal") );
+        pTabElementAttrList->add( FSNS( XML_w, XML_val ), OString( "decimal" ) );
         break;
     case SVX_TAB_ADJUST_CENTER:
-        pTabElementAttrList->add( FSNS( XML_w, XML_val ), OString( (sal_Char *)"center") );
+        pTabElementAttrList->add( FSNS( XML_w, XML_val ), OString( "center" ) );
         break;
     case SVX_TAB_ADJUST_DEFAULT:
     case SVX_TAB_ADJUST_LEFT:
     default:
-        pTabElementAttrList->add( FSNS( XML_w, XML_val ), OString( (sal_Char *)"left") );
+        pTabElementAttrList->add( FSNS( XML_w, XML_val ), OString( "left" ) );
         break;
     }
 
@@ -6606,15 +6606,15 @@ static void impl_WriteTabElement( FSHelperPtr pSerializer,
     sal_Unicode cFillChar = rTab.GetFill();
 
     if ('.' == cFillChar )
-        pTabElementAttrList->add( FSNS( XML_w, XML_leader ), OString( (sal_Char *) "dot" ) );
+        pTabElementAttrList->add( FSNS( XML_w, XML_leader ), OString( "dot" ) );
     else if ( '-' == cFillChar )
-        pTabElementAttrList->add( FSNS( XML_w, XML_leader ), OString( (sal_Char *) "hyphen" ) );
+        pTabElementAttrList->add( FSNS( XML_w, XML_leader ), OString( "hyphen" ) );
     else if ( sal_Unicode(0xB7) == cFillChar ) // middle dot
-        pTabElementAttrList->add( FSNS( XML_w, XML_leader ), OString( (sal_Char *) "middleDot" ) );
+        pTabElementAttrList->add( FSNS( XML_w, XML_leader ), OString( "middleDot" ) );
     else if ( '_' == cFillChar )
-        pTabElementAttrList->add( FSNS( XML_w, XML_leader ), OString( (sal_Char *) "underscore" ) );
+        pTabElementAttrList->add( FSNS( XML_w, XML_leader ), OString( "underscore" ) );
     else
-        pTabElementAttrList->add( FSNS( XML_w, XML_leader ), OString( (sal_Char *) "none" ) );
+        pTabElementAttrList->add( FSNS( XML_w, XML_leader ), OString( "none" ) );
 
     pSerializer->singleElementNS( XML_w, XML_tab, pTabElementAttrList );
 }


More information about the Libreoffice-commits mailing list