summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-21 08:36:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-21 14:25:43 +0000
commit4bb264574a9136ae39e5557b080d3f49a853ce6e (patch)
tree9452112466c322e2108d9f99e4bf70859d7355d6 /vcl
parentb4d3e2f99cf8208dcda279ee8d9a45557b806ff9 (diff)
ByteString->rtl::OString
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index ab428d3f4c2c..0c622350f4f3 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -567,15 +567,15 @@ String PPDParser::getPPDFile( const String& rFile )
String aRet;
if( aStream.IsOpen() )
{
- ByteString aLine = aStream.ReadLine();
- if( aLine.Search( "*PPD-Adobe" ) == 0 )
+ rtl::OString aLine = aStream.ReadLine();
+ if (aLine.indexOfL(RTL_CONSTASCII_STRINGPARAM("*PPD-Adobe")) == 0)
aRet = aStream.GetFileName();
else
{
// our *Include hack does usually not begin
// with *PPD-Adobe, so try some lines for *Include
int nLines = 10;
- while( aLine.Search( "*Include" ) != 0 && --nLines )
+ while (aLine.indexOfL(RTL_CONSTASCII_STRINGPARAM("*Include")) != 0 && --nLines)
aLine = aStream.ReadLine();
if( nLines )
aRet = aStream.GetFileName();