diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-03-12 10:05:38 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-03-12 23:12:14 +0000 |
commit | f92a5927052f1e96ed864dd6bc6326531db4fd1f (patch) | |
tree | 613853e86c57e2f932b3f15a432318d98d938d30 /unotools | |
parent | 133fbbcbd3fa8fec3920b53f6b93f5d3c4779a35 (diff) |
Polishing 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10
Change-Id: I73334fca8429dc0ad4250ce638027fa52245dec4
Reviewed-on: https://gerrit.libreoffice.org/2676
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/misc/fontdefs.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
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 ) |