diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-06 07:54:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-06 22:40:48 +0100 |
commit | f5407c72f94117c9a172d1ac1466f5dea88a3a59 (patch) | |
tree | 5043d6dfaa4758049b2c9e4490308e5498ad43be | |
parent | cdd0e1810d4019d827563b436c1b3b8d1cf5b579 (diff) |
UniString::CreateFromInt32(0) -> "0"
-rw-r--r-- | sw/source/core/text/txtftn.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/app/docstyle.cxx | 5 | ||||
-rw-r--r-- | sw/source/ui/fldui/xfldui.cxx | 2 |
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) |