From 8079f40743f86c4f7e6c9af8393ff699378a0797 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 28 May 2013 10:53:03 +0200 Subject: Make use of IsStarSymbol() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7a2e3a6f11bbaaaff50e8163e4ce3e2583b1d03c Reviewed-on: https://gerrit.libreoffice.org/4077 Reviewed-by: Luboš Luňák Tested-by: Luboš Luňák --- editeng/source/items/textitem.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'editeng') diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 51995af6f8d9..f9f342e44575 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -373,9 +373,7 @@ SfxPoolItem* SvxFontItem::Clone( SfxItemPool * ) const SvStream& SvxFontItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const { - sal_Bool bToBats = - GetFamilyName().EqualsIgnoreCaseAscii( "StarSymbol", 0, sizeof("StarSymbol")-1 ) || - GetFamilyName().EqualsIgnoreCaseAscii( "OpenSymbol", 0, sizeof("OpenSymbol")-1 ); + sal_Bool bToBats = IsStarSymbol( GetFamilyName() ); rStrm << (sal_uInt8) GetFamily() << (sal_uInt8) GetPitch() << (sal_uInt8)(bToBats ? RTL_TEXTENCODING_SYMBOL : GetSOStoreTextEncoding(GetCharSet())); -- cgit v1.2.3