summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-04-06 07:54:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-04-06 22:40:48 +0100
commitf5407c72f94117c9a172d1ac1466f5dea88a3a59 (patch)
tree5043d6dfaa4758049b2c9e4490308e5498ad43be /sw/source
parentcdd0e1810d4019d827563b436c1b3b8d1cf5b579 (diff)
UniString::CreateFromInt32(0) -> "0"
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/txtftn.cxx3
-rw-r--r--sw/source/ui/app/docstyle.cxx5
-rw-r--r--sw/source/ui/fldui/xfldui.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/text/txtftn.cxx b/sw/source/core/text/txtftn.cxx
index 3769aff9c9b4..c346be93727a 100644
--- a/sw/source/core/text/txtftn.cxx
+++ b/sw/source/core/text/txtftn.cxx
@@ -1582,8 +1582,7 @@ void SwQuoVadisPortion::Paint( const SwTxtPaintInfo &rInf ) const
SwFldPortion *SwErgoSumPortion::Clone( const XubString &rExpand ) const
{
- UniString aTmp; // = UniString::CreateFromInt32( 0 );
- return new SwErgoSumPortion( rExpand, aTmp );
+ return new SwErgoSumPortion( rExpand, rtl::OUString() );
}
SwErgoSumPortion::SwErgoSumPortion( const XubString &rExp, const XubString& rStr )
diff --git a/sw/source/ui/app/docstyle.cxx b/sw/source/ui/app/docstyle.cxx
index 4f6290f628a1..3937a43a672a 100644
--- a/sw/source/ui/app/docstyle.cxx
+++ b/sw/source/ui/app/docstyle.cxx
@@ -636,7 +636,8 @@ String SwDocStyleSheet::GetDescription(SfxMapUnit eUnit)
String aDesc;
const SfxPoolItem* pItem = aIter.FirstItem();
- String sPageNum, sModel, sBreak;
+ rtl::OUString sPageNum;
+ String sModel, sBreak;
sal_Bool bHasWesternFontPrefix = sal_False;
sal_Bool bHasCJKFontPrefix = sal_False;
SvtCJKOptions aCJKOptions;
@@ -729,7 +730,7 @@ String SwDocStyleSheet::GetDescription(SfxMapUnit eUnit)
aDesc += SW_RESSTR(STR_PAGEBREAK);
aDesc += sPlus;
aDesc += sModel;
- if(sPageNum != String(UniString::CreateFromInt32(0)))
+ if (sPageNum != "0")
{
aDesc += sPlus;
aDesc += SW_RESSTR(STR_PAGEOFFSET);
diff --git a/sw/source/ui/fldui/xfldui.cxx b/sw/source/ui/fldui/xfldui.cxx
index 5cd034fcdfc0..731bc347fc02 100644
--- a/sw/source/ui/fldui/xfldui.cxx
+++ b/sw/source/ui/fldui/xfldui.cxx
@@ -136,7 +136,7 @@ sal_Bool SwFldMgr::IsDBNumeric( const String& rDBName, const String& rTblQryName
Any aCol = xCols->getByName(rFldName);
Reference <XPropertySet> xCol;
aCol >>= xCol;
- Any aType = xCol->getPropertyValue( UniString::CreateFromAscii("Type"));
+ Any aType = xCol->getPropertyValue(rtl::OUString("Type"));
sal_Int32 eDataType = 0;
aType >>= eDataType;
switch(eDataType)