summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2013-08-21 23:17:58 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2013-08-25 11:34:43 +0000
commit99105031a3e15dad3120c74ab46df4ff5d0f7349 (patch)
tree18d02735eee4968841f2002b5ded649de591b8df /sw
parentTypo (diff)
downloadcore-99105031a3e15dad3120c74ab46df4ff5d0f7349.tar.gz
core-99105031a3e15dad3120c74ab46df4ff5d0f7349.zip
String to OUString
Change-Id: I260df7e14a5394dcf4aef540e575366eb9785c47 Reviewed-on: https://gerrit.libreoffice.org/5607 Tested-by: Matteo Casalin <matteo.casalin@yahoo.com> Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/cellatr.hxx8
-rw-r--r--sw/source/core/attr/cellatr.cxx5
2 files changed, 8 insertions, 5 deletions
diff --git a/sw/inc/cellatr.hxx b/sw/inc/cellatr.hxx
index 1ae2135dadcc..3a71cb24c2f0 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 c34ee343c571..43de12c3a5ca 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