diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-07 08:43:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-12 11:56:41 +0200 |
commit | 556fe4ec7339892d63cb98bc9bfd09718944bf03 (patch) | |
tree | f4fe7f8e4ee1bb2f31f77c021e6e50209219616c /vcl/generic/print/printerjob.cxx | |
parent | ff7ac85d4b657da2cd28b878325fd7c290b5c63b (diff) |
convert vcl/ppdparser.hxx from String to OUString
Change-Id: I8a95a98e5cc92e5bedb4813411afc86cc438fdad
Diffstat (limited to 'vcl/generic/print/printerjob.cxx')
-rw-r--r-- | vcl/generic/print/printerjob.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/generic/print/printerjob.cxx b/vcl/generic/print/printerjob.cxx index 04c1739e601d..2af8923af271 100644 --- a/vcl/generic/print/printerjob.cxx +++ b/vcl/generic/print/printerjob.cxx @@ -760,9 +760,9 @@ bool PrinterJob::writeFeatureList( osl::File* pFile, const JobData& rJob, bool b if( GetPostscriptLevel( &rJob ) == 1 ) { bool bHavePS2 = - ( pValue->m_aValue.SearchAscii( "<<" ) != STRING_NOTFOUND ) + ( pValue->m_aValue.indexOf( "<<" ) != -1 ) || - ( pValue->m_aValue.SearchAscii( ">>" ) != STRING_NOTFOUND ); + ( pValue->m_aValue.indexOf( ">>" ) != -1 ); if( bHavePS2 ) continue; } @@ -843,8 +843,8 @@ void PrinterJob::writeJobPatch( osl::File* pFile, const JobData& rJobData ) for( int i = 0; i < nValueCount; i++ ) { const PPDValue* pVal = pKey->getValue( i ); - patch_order.push_back( pVal->m_aOption.ToInt32() ); - if( patch_order.back() == 0 && ! pVal->m_aOption.EqualsAscii( "0" ) ) + patch_order.push_back( pVal->m_aOption.toInt32() ); + if( patch_order.back() == 0 && ! pVal->m_aOption.equalsAscii( "0" ) ) { WritePS( pFile, "% Warning: left out JobPatchFile option \"" ); OString aOption = OUStringToOString( pVal->m_aOption, RTL_TEXTENCODING_ASCII_US ); |