From f92a5927052f1e96ed864dd6bc6326531db4fd1f Mon Sep 17 00:00:00 2001 From: "Chr. Rossmanith" Date: Tue, 12 Mar 2013 10:05:38 +0100 Subject: Polishing 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 Change-Id: I73334fca8429dc0ad4250ce638027fa52245dec4 Reviewed-on: https://gerrit.libreoffice.org/2676 Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba --- unotools/source/misc/fontdefs.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'unotools/source/misc') diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx index fb243254089b..ad8ab621140b 100644 --- a/unotools/source/misc/fontdefs.cxx +++ b/unotools/source/misc/fontdefs.cxx @@ -447,7 +447,7 @@ void GetEnglishSearchFontName( OUString& rName ) OUString GetNextFontToken( const OUString& rTokenStr, sal_Int32& rIndex ) { // check for valid start index - int nStringLen = rTokenStr.getLength(); + sal_Int32 nStringLen = rTokenStr.getLength(); if( rIndex >= nStringLen ) { rIndex = -1; @@ -504,13 +504,11 @@ static bool ImplIsFontToken( const OUString& rName, const String& rToken ) static void ImplAppendFontToken( OUString& rName, const String& rNewToken ) { - if ( rName.getLength() ) + if ( !rName.isEmpty() ) { rName += ";" ; - rName += rNewToken ; } - else - rName = rNewToken; + rName += rNewToken; } void AddTokenFontName( OUString& rName, const OUString& rNewToken ) -- cgit