[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Mon Aug 12 04:58:45 PDT 2013
vcl/unx/generic/printer/ppdparser.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c0cf59e9e227f02d85ab3528913522abcebc713c
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Aug 12 12:57:53 2013 +0100
fix up some other single arg String::Erase conversions
Change-Id: I828609edb8e4c740771634d4af97928f73b46408
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 1f44cec..5616bae 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -1048,7 +1048,7 @@ void PPDParser::parse( ::std::list< OString >& rLines )
aOption = GetCommandLineToken( 1, aOption );
sal_Int32 nTransPos = aOption.indexOf( '/' );
if( nTransPos != -1 )
- aOption = aOption.replaceAt( nTransPos, 1, "" );
+ aOption = aOption.copy(0, nTransPos);
}
PPDValueType eType = eNo;
@@ -1194,7 +1194,7 @@ void PPDParser::parse( ::std::list< OString >& rLines )
sal_Int32 nPos = aKey.indexOf( ':' );
if( nPos != -1 )
{
- aKey = aKey.replaceAt( nPos, 1, "" );
+ aKey = aKey.copy(0, nPos);
OUString aOption(OStringToOUString(
WhitespaceToSpace(aLine.copy(nPos+9)),
RTL_TEXTENCODING_MS_1252));
More information about the Libreoffice-commits
mailing list