diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-12 12:57:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-12 12:57:53 +0100 |
commit | c0cf59e9e227f02d85ab3528913522abcebc713c (patch) | |
tree | ac2cfc2095291298c33f8186d9d1bd90dde19e7d /vcl | |
parent | 72e9be9ee2941f31fceab0d84178ba6b524f2cb9 (diff) |
fix up some other single arg String::Erase conversions
Change-Id: I828609edb8e4c740771634d4af97928f73b46408
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index 1f44cec624e1..5616baed2dbb 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)); |