diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 17:58:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 17:58:17 +0100 |
commit | 9de415945a608b8b90b648e04ad06bac2d53a9cd (patch) | |
tree | 1b0a3446e727a2190480b9f530767308ead38dd3 /vcl/generic | |
parent | 11f20999040e97c052c0015e3265de2a68cee666 (diff) |
vcl: Use appropriate OUString functions on string constants
Change-Id: I169624820cd7d25eab18a6b90482e075ebfebcc6
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/fontmanager/fontmanager.cxx | 4 | ||||
-rw-r--r-- | vcl/generic/print/printerjob.cxx | 2 | ||||
-rw-r--r-- | vcl/generic/print/prtsetup.cxx | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx index 33fb4ed77c3a..4fbded72515c 100644 --- a/vcl/generic/fontmanager/fontmanager.cxx +++ b/vcl/generic/fontmanager/fontmanager.cxx @@ -364,8 +364,8 @@ bool PrintFontManager::PrintFont::readAfmMetrics( MultiAtomProvider* pProvider, // try to parse the font name and decide whether it might be a // japanese font. Who invented this PITA ? OUString aPSNameLastToken( aPSName.copy( aPSName.lastIndexOf( '-' )+1 ) ); - if( aPSNameLastToken.equalsAscii( "H" ) || - aPSNameLastToken.equalsAscii( "V" ) ) + if( aPSNameLastToken == "H" || + aPSNameLastToken == "V" ) { static const char* pEncs[] = { diff --git a/vcl/generic/print/printerjob.cxx b/vcl/generic/print/printerjob.cxx index 80d52b1ad1ed..f9da8c92b628 100644 --- a/vcl/generic/print/printerjob.cxx +++ b/vcl/generic/print/printerjob.cxx @@ -857,7 +857,7 @@ void PrinterJob::writeJobPatch( osl::File* pFile, const JobData& rJobData ) { const PPDValue* pVal = pKey->getValue( i ); patch_order.push_back( pVal->m_aOption.toInt32() ); - if( patch_order.back() == 0 && ! pVal->m_aOption.equalsAscii( "0" ) ) + if( patch_order.back() == 0 && pVal->m_aOption != "0" ) { WritePS( pFile, "% Warning: left out JobPatchFile option \"" ); OString aOption = OUStringToOString( pVal->m_aOption, RTL_TEXTENCODING_ASCII_US ); diff --git a/vcl/generic/print/prtsetup.cxx b/vcl/generic/print/prtsetup.cxx index 1af14cc01c62..7118850236b1 100644 --- a/vcl/generic/print/prtsetup.cxx +++ b/vcl/generic/print/prtsetup.cxx @@ -341,11 +341,11 @@ RTSDevicePage::RTSDevicePage( RTSDialog* pParent ) for( int i = 0; i < m_pParent->m_aJobData.m_pParser->getKeys(); i++ ) { const PPDKey* pKey = m_pParent->m_aJobData.m_pParser->getKey( i ); - if( pKey->isUIKey() && - ! pKey->getKey().equalsAscii( "PageSize" ) && - ! pKey->getKey().equalsAscii( "InputSlot" ) && - ! pKey->getKey().equalsAscii( "PageRegion" ) && - ! pKey->getKey().equalsAscii( "Duplex" ) + if( pKey->isUIKey() && + pKey->getKey() != "PageSize" && + pKey->getKey() != "InputSlot" && + pKey->getKey() != "PageRegion" && + pKey->getKey() != "Duplex" ) { OUString aEntry( m_pParent->m_aJobData.m_pParser->translateKey( pKey->getKey() ) ); |