From 403a75a275d9be8b3cc192b0653b4af3533f1ecc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 13 Aug 2013 20:41:52 +0100 Subject: XubString->OUString Change-Id: I178f9eb702afb6143c583d5fd54003a427d895fa --- editeng/source/items/textitem.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'editeng/source/items') diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 2918b22d426c..dc9332075d3b 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -222,8 +222,8 @@ SvxFontItem::SvxFontItem( const sal_uInt16 nId ) : // ----------------------------------------------------------------------- -SvxFontItem::SvxFontItem( const FontFamily eFam, const XubString& aName, - const XubString& aStName, const FontPitch eFontPitch, +SvxFontItem::SvxFontItem( const FontFamily eFam, const OUString& aName, + const OUString& aStName, const FontPitch eFontPitch, const rtl_TextEncoding eFontTextEncoding, const sal_uInt16 nId ) : SfxPoolItem( nId ), @@ -256,19 +256,19 @@ bool SvxFontItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const case 0: { com::sun::star::awt::FontDescriptor aFontDescriptor; - aFontDescriptor.Name = aFamilyName.GetBuffer(); - aFontDescriptor.StyleName = aStyleName.GetBuffer(); + aFontDescriptor.Name = aFamilyName; + aFontDescriptor.StyleName = aStyleName; aFontDescriptor.Family = (sal_Int16)(eFamily); aFontDescriptor.CharSet = (sal_Int16)(eTextEncoding); aFontDescriptor.Pitch = (sal_Int16)(ePitch); rVal <<= aFontDescriptor; } break; - case MID_FONT_FAMILY_NAME : - rVal <<= OUString(aFamilyName.GetBuffer()); + case MID_FONT_FAMILY_NAME: + rVal <<= aFamilyName; break; case MID_FONT_STYLE_NAME: - rVal <<= OUString(aStyleName.GetBuffer()); + rVal <<= aStyleName; break; case MID_FONT_FAMILY : rVal <<= (sal_Int16)(eFamily); break; case MID_FONT_CHAR_SET : rVal <<= (sal_Int16)(eTextEncoding); break; @@ -300,7 +300,7 @@ bool SvxFontItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId) OUString aStr; if(!(rVal >>= aStr)) return sal_False; - aFamilyName = aStr.getStr(); + aFamilyName = aStr; } break; case MID_FONT_STYLE_NAME: @@ -308,7 +308,7 @@ bool SvxFontItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId) OUString aStr; if(!(rVal >>= aStr)) return sal_False; - aStyleName = aStr.getStr(); + aStyleName = aStr; } break; case MID_FONT_FAMILY : -- cgit