summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-02-21 01:06:12 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-02-21 01:07:21 +0900
commit30063974396f43ef30bc6b81f0260d3fb09d17cd (patch)
treeaafd11745407f9579c855b3dd9c70c40c1360f73 /vcl/generic
parentc306532e0bed1df36abf5d7ad6f0363056e69739 (diff)
Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/app/gensys.cxx2
-rw-r--r--vcl/generic/print/genprnpsp.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/generic/app/gensys.cxx b/vcl/generic/app/gensys.cxx
index 29b39ddd6a1c..ded4900e8809 100644
--- a/vcl/generic/app/gensys.cxx
+++ b/vcl/generic/app/gensys.cxx
@@ -133,7 +133,7 @@ const char* SalGenericSystem::getFrameResName()
{
rtl::OUString aArg;
if( ! osl_getCommandArg( n, &aArg.pData ) &&
- aArg.equalsIgnoreAsciiCaseAscii( "-name" ) &&
+ aArg.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("-name")) &&
! osl_getCommandArg( n+1, &aArg.pData ) )
{
aResName.append( rtl::OUStringToOString( aArg, osl_getThreadTextEncoding() ) );
diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx
index 9bc8731016c3..a456517a9df5 100644
--- a/vcl/generic/print/genprnpsp.cxx
+++ b/vcl/generic/print/genprnpsp.cxx
@@ -423,7 +423,7 @@ void SalGenericInstance::configurePspInfoPrinter(PspSalInfoPrinter *pPrinter,
if( compat_it != pJobSetup->maValueMap.end() )
{
- if( compat_it->second.equalsIgnoreAsciiCaseAscii( "true" ) )
+ if( compat_it->second.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true")) )
bStrictSO52Compatibility = true;
}
pPrinter->m_aPrinterGfx.setStrictSO52Compatibility( bStrictSO52Compatibility );
@@ -636,7 +636,7 @@ sal_Bool PspSalInfoPrinter::SetPrinterData( ImplJobSetup* pJobSetup )
if( compat_it != pJobSetup->maValueMap.end() )
{
- if( compat_it->second.equalsIgnoreAsciiCaseAscii( "true" ) )
+ if( compat_it->second.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true")) )
bStrictSO52Compatibility = true;
}
m_aPrinterGfx.setStrictSO52Compatibility( bStrictSO52Compatibility );
@@ -1000,7 +1000,7 @@ sal_Bool PspSalPrinter::StartJob(
if( compat_it != pJobSetup->maValueMap.end() )
{
- if( compat_it->second.equalsIgnoreAsciiCaseAscii( "true" ) )
+ if( compat_it->second.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true")) )
bStrictSO52Compatibility = true;
}
m_aPrinterGfx.setStrictSO52Compatibility( bStrictSO52Compatibility );