Kaydet (Commit) 4bb26457 authored tarafından Caolán McNamara's avatar Caolán McNamara

ByteString->rtl::OString

üst b4d3e2f9
...@@ -567,15 +567,15 @@ String PPDParser::getPPDFile( const String& rFile ) ...@@ -567,15 +567,15 @@ String PPDParser::getPPDFile( const String& rFile )
String aRet; String aRet;
if( aStream.IsOpen() ) if( aStream.IsOpen() )
{ {
ByteString aLine = aStream.ReadLine(); rtl::OString aLine = aStream.ReadLine();
if( aLine.Search( "*PPD-Adobe" ) == 0 ) if (aLine.indexOfL(RTL_CONSTASCII_STRINGPARAM("*PPD-Adobe")) == 0)
aRet = aStream.GetFileName(); aRet = aStream.GetFileName();
else else
{ {
// our *Include hack does usually not begin // our *Include hack does usually not begin
// with *PPD-Adobe, so try some lines for *Include // with *PPD-Adobe, so try some lines for *Include
int nLines = 10; int nLines = 10;
while( aLine.Search( "*Include" ) != 0 && --nLines ) while (aLine.indexOfL(RTL_CONSTASCII_STRINGPARAM("*Include")) != 0 && --nLines)
aLine = aStream.ReadLine(); aLine = aStream.ReadLine();
if( nLines ) if( nLines )
aRet = aStream.GetFileName(); aRet = aStream.GetFileName();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment