summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-09-08 13:03:03 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-09-08 14:27:23 +0100
commit1f7e6bdd23600cf118b786bbeb869949c36297e7 (patch)
tree5c57a8b924c28bc22e1d39db107bc594f9c22834 /unotools/source
parent8e1a7034ff35ee825f3f8f22e14d93189149a1aa (diff)
fdo#82854 - cleanup & review bits.
Change-Id: Ia5b2628adb62013a22cf6c5e384154c54abc2294
Diffstat (limited to 'unotools/source')
-rw-r--r--unotools/source/misc/fontdefs.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx
index be2079fe711a..4f0fb085634f 100644
--- a/unotools/source/misc/fontdefs.cxx
+++ b/unotools/source/misc/fontdefs.cxx
@@ -400,7 +400,6 @@ OUString GetEnglishSearchFontName( const OUString& rInName )
else if( ((c < '0') || (c > '9')) && (c != ';') ) // not 0-9 or semicolon
{
// Remove white spaces and special characters
-
rName.remove(i,1);
nLen--;
continue;
@@ -426,7 +425,7 @@ OUString GetEnglishSearchFontName( const OUString& rInName )
FontNameDictionary::const_iterator it = aDictionary.find( rNameStr );
if( it != aDictionary.end() )
- rName = OUString::createFromAscii ( it->second );
+ rNameStr = OUString::createFromAscii ( it->second );
}
return rNameStr;