summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-03-12 10:05:38 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-12 23:12:14 +0000
commitf92a5927052f1e96ed864dd6bc6326531db4fd1f (patch)
tree613853e86c57e2f932b3f15a432318d98d938d30 /unotools
parent133fbbcbd3fa8fec3920b53f6b93f5d3c4779a35 (diff)
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.cxx8
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 )