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

Matteo Casalin matteo.casalin at yahoo.com
Sun Aug 25 04:35:09 PDT 2013


 sw/inc/cellatr.hxx              |    8 +++++---
 sw/source/core/attr/cellatr.cxx |    5 +++--
 2 files changed, 8 insertions(+), 5 deletions(-)

New commits:
commit 99105031a3e15dad3120c74ab46df4ff5d0f7349
Author: Matteo Casalin <matteo.casalin at yahoo.com>
Date:   Wed Aug 21 23:17:58 2013 +0200

    String to OUString
    
    Change-Id: I260df7e14a5394dcf4aef540e575366eb9785c47
    Reviewed-on: https://gerrit.libreoffice.org/5607
    Tested-by: Matteo Casalin <matteo.casalin at yahoo.com>
    Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>

diff --git a/sw/inc/cellatr.hxx b/sw/inc/cellatr.hxx
index 1ae2135..3a71cb2 100644
--- a/sw/inc/cellatr.hxx
+++ b/sw/inc/cellatr.hxx
@@ -17,8 +17,8 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef _CELLATR_HXX
-#define _CELLATR_HXX
+#ifndef CELLATR_HXX
+#define CELLATR_HXX
 
 #include <svl/intitem.hxx>
 #include <svl/zforlist.hxx>
@@ -26,6 +26,8 @@
 #include "format.hxx"
 #include "cellfml.hxx"
 
+namespace rtl { class OUString; }
+
 class SW_DLLPUBLIC SwTblBoxNumFormat : public SfxUInt32Item
 {
     sal_Bool bAuto;     ///< automatically given flag
@@ -54,7 +56,7 @@ class SwTblBoxFormula : public SfxPoolItem, public SwTableFormula
                             // can only be TableBoxFormat
 
 public:
-    SwTblBoxFormula( const String& rFormula );
+    SwTblBoxFormula( const OUString& rFormula );
     ~SwTblBoxFormula() {};
 
     // "pure virtual methods" of SfxPoolItem
diff --git a/sw/source/core/attr/cellatr.cxx b/sw/source/core/attr/cellatr.cxx
index c34ee34..43de12c 100644
--- a/sw/source/core/attr/cellatr.cxx
+++ b/sw/source/core/attr/cellatr.cxx
@@ -27,6 +27,7 @@
 #include <node.hxx>
 #include <rolbck.hxx>
 #include <rtl/math.hxx>
+#include <rtl/ustring.hxx>
 #include <switerator.hxx>
 #include <swtable.hxx>
 
@@ -55,7 +56,7 @@ SfxPoolItem* SwTblBoxNumFormat::Clone( SfxItemPool* ) const
 // SwTblBoxFormula
 // -----------------
 
-SwTblBoxFormula::SwTblBoxFormula( const String& rFormula )
+SwTblBoxFormula::SwTblBoxFormula( const OUString& rFormula )
     : SfxPoolItem( RES_BOXATR_FORMULA ),
     SwTableFormula( rFormula ),
     pDefinedIn( 0 )
@@ -186,7 +187,7 @@ void SwTblBoxFormula::Calc( SwTblCalcPara& rCalcPara, double& rValue )
     {
         // create pointers from box names
         BoxNmToPtr( rCalcPara.pTbl );
-        String sFml( MakeFormula( rCalcPara ));
+        const OUString sFml( MakeFormula( rCalcPara ));
         if( !rCalcPara.rCalc.IsCalcError() )
             rValue = rCalcPara.rCalc.Calculate( sFml ).GetDouble();
         else


More information about the Libreoffice-commits mailing list