diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-22 17:17:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 10:10:08 +0000 |
commit | 20153742d2dee2df022275a07cc958b1759b9b72 (patch) | |
tree | a91d3d42faa559783d407bb1fe08f4070d945762 /vcl/generic | |
parent | a22ce3e4483f6fe462eaba8826a91355957e3676 (diff) |
add a stripStart, can replace EraseLeadingChars
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/fontmanager/fontmanager.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx index 3d95034160e8..789e57d8f92c 100644 --- a/vcl/generic/fontmanager/fontmanager.cxx +++ b/vcl/generic/fontmanager/fontmanager.cxx @@ -83,7 +83,8 @@ #include <valgrind/callgrind.h> #endif -#include "comphelper/processfactory.hxx" +#include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include "com/sun/star/beans/XMaterialHolder.hpp" #include "com/sun/star/beans/NamedValue.hpp" @@ -2085,9 +2086,9 @@ void PrintFontManager::initFontsAlias() ByteString aMap = GetCommandLineToken( 1, aLine ); // remove eventual quotes - aAlias.EraseLeadingChars( '"' ); + aAlias = comphelper::string::stripStart(aAlias, '"'); aAlias.EraseTrailingChars( '"' ); - aMap.EraseLeadingChars( '"' ); + aMap = comphelper::string::stripStart(aMap, '"'); aMap.EraseTrailingChars( '"' ); XLFDEntry aAliasEntry, aMapEntry; |