Kaydet (Commit) f5407c72 authored tarafından Caolán McNamara's avatar Caolán McNamara

UniString::CreateFromInt32(0) -> "0"

üst cdd0e181
...@@ -1582,8 +1582,7 @@ void SwQuoVadisPortion::Paint( const SwTxtPaintInfo &rInf ) const ...@@ -1582,8 +1582,7 @@ void SwQuoVadisPortion::Paint( const SwTxtPaintInfo &rInf ) const
SwFldPortion *SwErgoSumPortion::Clone( const XubString &rExpand ) const SwFldPortion *SwErgoSumPortion::Clone( const XubString &rExpand ) const
{ {
UniString aTmp; // = UniString::CreateFromInt32( 0 ); return new SwErgoSumPortion( rExpand, rtl::OUString() );
return new SwErgoSumPortion( rExpand, aTmp );
} }
SwErgoSumPortion::SwErgoSumPortion( const XubString &rExp, const XubString& rStr ) SwErgoSumPortion::SwErgoSumPortion( const XubString &rExp, const XubString& rStr )
......
...@@ -636,7 +636,8 @@ String SwDocStyleSheet::GetDescription(SfxMapUnit eUnit) ...@@ -636,7 +636,8 @@ String SwDocStyleSheet::GetDescription(SfxMapUnit eUnit)
String aDesc; String aDesc;
const SfxPoolItem* pItem = aIter.FirstItem(); const SfxPoolItem* pItem = aIter.FirstItem();
String sPageNum, sModel, sBreak; rtl::OUString sPageNum;
String sModel, sBreak;
sal_Bool bHasWesternFontPrefix = sal_False; sal_Bool bHasWesternFontPrefix = sal_False;
sal_Bool bHasCJKFontPrefix = sal_False; sal_Bool bHasCJKFontPrefix = sal_False;
SvtCJKOptions aCJKOptions; SvtCJKOptions aCJKOptions;
...@@ -729,7 +730,7 @@ String SwDocStyleSheet::GetDescription(SfxMapUnit eUnit) ...@@ -729,7 +730,7 @@ String SwDocStyleSheet::GetDescription(SfxMapUnit eUnit)
aDesc += SW_RESSTR(STR_PAGEBREAK); aDesc += SW_RESSTR(STR_PAGEBREAK);
aDesc += sPlus; aDesc += sPlus;
aDesc += sModel; aDesc += sModel;
if(sPageNum != String(UniString::CreateFromInt32(0))) if (sPageNum != "0")
{ {
aDesc += sPlus; aDesc += sPlus;
aDesc += SW_RESSTR(STR_PAGEOFFSET); aDesc += SW_RESSTR(STR_PAGEOFFSET);
......
...@@ -136,7 +136,7 @@ sal_Bool SwFldMgr::IsDBNumeric( const String& rDBName, const String& rTblQryName ...@@ -136,7 +136,7 @@ sal_Bool SwFldMgr::IsDBNumeric( const String& rDBName, const String& rTblQryName
Any aCol = xCols->getByName(rFldName); Any aCol = xCols->getByName(rFldName);
Reference <XPropertySet> xCol; Reference <XPropertySet> xCol;
aCol >>= xCol; aCol >>= xCol;
Any aType = xCol->getPropertyValue( UniString::CreateFromAscii("Type")); Any aType = xCol->getPropertyValue(rtl::OUString("Type"));
sal_Int32 eDataType = 0; sal_Int32 eDataType = 0;
aType >>= eDataType; aType >>= eDataType;
switch(eDataType) switch(eDataType)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment