diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-21 01:06:12 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-21 01:07:21 +0900 |
commit | 30063974396f43ef30bc6b81f0260d3fb09d17cd (patch) | |
tree | aafd11745407f9579c855b3dd9c70c40c1360f73 /vcl | |
parent | c306532e0bed1df36abf5d7ad6f0363056e69739 (diff) |
Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/app/gensys.cxx | 2 | ||||
-rw-r--r-- | vcl/generic/print/genprnpsp.cxx | 6 | ||||
-rw-r--r-- | vcl/headless/svpprn.cxx | 2 | ||||
-rw-r--r-- | vcl/source/app/settings.cxx | 12 | ||||
-rw-r--r-- | vcl/source/window/menu.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/printdlg.cxx | 6 |
6 files changed, 15 insertions, 15 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 ); diff --git a/vcl/headless/svpprn.cxx b/vcl/headless/svpprn.cxx index eca65e34fdce..a5674380c041 100644 --- a/vcl/headless/svpprn.cxx +++ b/vcl/headless/svpprn.cxx @@ -199,7 +199,7 @@ SalInfoPrinter* SvpSalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueIn pJobSetup->maValueMap.find( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StrictSO52Compatibility" ) ) ); 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 ); diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index a3a72982b258..c95d5616963f 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -620,12 +620,12 @@ sal_uLong StyleSettings::GetAutoSymbolsStyle() const { rtl::OUString const & env = Application::GetDesktopEnvironment(); sal_uLong nRet = - ( env.equalsIgnoreAsciiCaseAscii( "gnome" ) || - env.equalsIgnoreAsciiCaseAscii( "windows" ) ) + ( env.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("gnome")) || + env.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("windows")) ) ? STYLE_SYMBOLS_TANGO - : env.equalsIgnoreAsciiCaseAscii( "kde" ) + : env.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("kde")) ? STYLE_SYMBOLS_CRYSTAL - : env.equalsIgnoreAsciiCaseAscii( "kde4" ) + : env.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("kde4")) ? STYLE_SYMBOLS_OXYGEN : STYLE_SYMBOLS_DEFAULT; @@ -966,7 +966,7 @@ sal_Bool MiscSettings::GetDisablePrinting() const vcl::SettingsConfigItem::get()-> getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DesktopManagement" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DisablePrinting" ) ) ); - mpData->mnDisablePrinting = aEnable.equalsIgnoreAsciiCaseAscii( "true" ) ? 1 : 0; + mpData->mnDisablePrinting = aEnable.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true")) ? 1 : 0; } return (sal_Bool)mpData->mnDisablePrinting; @@ -1022,7 +1022,7 @@ sal_Bool MiscSettings::GetEnableATToolSupport() const vcl::SettingsConfigItem::get()-> getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Accessibility" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "EnableATToolSupport" ) ) ); - mpData->mnEnableATT = aEnable.equalsIgnoreAsciiCaseAscii( "true" ) ? 1 : 0; + mpData->mnEnableATT = aEnable.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true")) ? 1 : 0; } else { diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index c8e31d22b1f4..fb8557de56c4 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -113,7 +113,7 @@ static sal_Bool ImplAccelDisabled() vcl::SettingsConfigItem::get()-> getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Menu" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SuppressAccelerators" ) ) ); - nAccelDisabled = aStr.equalsIgnoreAsciiCaseAscii( "true" ) ? 1 : 0; + nAccelDisabled = aStr.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true")) ? 1 : 0; } return (nAccelDisabled == 1) ? sal_True : sal_False; } diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index 74d6e08809dc..11fba1441ce6 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -628,7 +628,7 @@ void PrintDialog::JobTabPage::readFromSettings() aValue = pItem->getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CollateBox" ) ) ); - if( aValue.equalsIgnoreAsciiCaseAscii( "alwaysoff" ) ) + if( aValue.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("alwaysoff")) ) { mnCollateUIMode = 1; maCollateBox.Check( sal_False ); @@ -639,7 +639,7 @@ void PrintDialog::JobTabPage::readFromSettings() mnCollateUIMode = 0; aValue = pItem->getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Collate" ) ) ); - maCollateBox.Check( aValue.equalsIgnoreAsciiCaseAscii( "true" ) ); + maCollateBox.Check( aValue.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true")) ); } Resize(); } @@ -692,7 +692,7 @@ void PrintDialog::OutputOptPage::readFromSettings() rtl::OUString aValue; aValue = pItem->getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CollateSingleJobs" ) ) ); - if ( aValue.equalsIgnoreAsciiCaseAscii( "true" ) ) + if ( aValue.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true")) ) { maCollateSingleJobsBox.Check( sal_True ); } |