summaryrefslogtreecommitdiffstats
path: root/vcl/unx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-21 11:34:01 +0200
committerNoel Grandin <noel@peralex.com>2013-11-21 13:29:29 +0200
commit6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4 (patch)
treeff375d3a9e989c731a42a1255b8e1cede2bb6bbd /vcl/unx
parentremove unnecessary use of OUString::createFromAscii (diff)
downloadcore-6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4.tar.gz
core-6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4.zip
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsL
Convert code like this: if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aStr == "rem") which compiles down to the same code. Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/printer/jobdata.cxx2
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx18
2 files changed, 10 insertions, 10 deletions
diff --git a/vcl/unx/generic/printer/jobdata.cxx b/vcl/unx/generic/printer/jobdata.cxx
index adf9d418bbdf..9b9e9eca2aa1 100644
--- a/vcl/unx/generic/printer/jobdata.cxx
+++ b/vcl/unx/generic/printer/jobdata.cxx
@@ -246,7 +246,7 @@ bool JobData::constructFromStreamBuffer( void* pData, int bytes, JobData& rJobDa
bPDFDevice = true;
rJobData.m_nPDFDevice = aLine.copy(RTL_CONSTASCII_LENGTH(pdfdeviceEquals)).toInt32();
}
- else if (aLine.equalsL(RTL_CONSTASCII_STRINGPARAM("PPDContexData")))
+ else if (aLine == "PPDContexData")
{
if( bPrinter )
{
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index ed2cdea3958a..8c5950783383 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -980,17 +980,17 @@ void PPDParser::parse( ::std::list< OString >& rLines )
parseOpenUI( aCurrentLine );
continue;
}
- else if (aKey.equalsL(RTL_CONSTASCII_STRINGPARAM("OrderDependency")))
+ else if (aKey == "OrderDependency")
{
parseOrderDependency( aCurrentLine );
continue;
}
- else if (aKey.equalsL(RTL_CONSTASCII_STRINGPARAM("UIConstraints")) ||
- aKey.equalsL(RTL_CONSTASCII_STRINGPARAM("NonUIConstraints")))
+ else if (aKey == "UIConstraints" ||
+ aKey == "NonUIConstraints")
{
continue; // parsed in pass 2
}
- else if( aKey.equalsL(RTL_CONSTASCII_STRINGPARAM("CustomPageSize")) ) // currently not handled
+ else if( aKey == "CustomPageSize" ) // currently not handled
continue;
// default values are parsed in pass 2
@@ -1278,15 +1278,15 @@ void PPDParser::parseOrderDependency(const OString& rLine)
pKey = keyit->second;
pKey->m_nOrderDependency = nOrder;
- if( aSetup.equalsL(RTL_CONSTASCII_STRINGPARAM("ExitServer")) )
+ if( aSetup == "ExitServer" )
pKey->m_eSetupType = PPDKey::ExitServer;
- else if( aSetup.equalsL(RTL_CONSTASCII_STRINGPARAM("Prolog")) )
+ else if( aSetup == "Prolog" )
pKey->m_eSetupType = PPDKey::Prolog;
- else if( aSetup.equalsL(RTL_CONSTASCII_STRINGPARAM("DocumentSetup")) )
+ else if( aSetup == "DocumentSetup" )
pKey->m_eSetupType = PPDKey::DocumentSetup;
- else if( aSetup.equalsL(RTL_CONSTASCII_STRINGPARAM("PageSetup")) )
+ else if( aSetup == "PageSetup" )
pKey->m_eSetupType = PPDKey::PageSetup;
- else if( aSetup.equalsL(RTL_CONSTASCII_STRINGPARAM("JCLSetup")) )
+ else if( aSetup == "JCLSetup" )
pKey->m_eSetupType = PPDKey::JCLSetup;
else
pKey->m_eSetupType = PPDKey::AnySetup;