summaryrefslogtreecommitdiff
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
parentc306532e0bed1df36abf5d7ad6f0363056e69739 (diff)
Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
-rw-r--r--reportdesign/source/filter/xml/dbloader2.cxx2
-rw-r--r--sal/osl/w32/procimpl.cxx6
-rw-r--r--sc/source/filter/excel/xlescher.cxx2
-rw-r--r--sc/source/ui/vba/vbaapplication.cxx2
-rw-r--r--sc/source/ui/vba/vbaeventshelper.cxx4
-rw-r--r--sc/source/ui/vba/vbafont.cxx4
-rw-r--r--scripting/source/basprov/basprov.cxx4
-rw-r--r--sd/source/filter/eppt/pptx-text.cxx4
-rw-r--r--sd/source/ui/unoidl/sddetect.cxx2
-rw-r--r--slideshow/source/engine/slide/slideimpl.cxx2
-rw-r--r--slideshow/source/engine/tools.cxx8
-rw-r--r--svtools/source/filter/FilterConfigCache.cxx4
-rw-r--r--svtools/source/misc/langhelp.cxx4
-rw-r--r--svx/source/gallery2/gallery1.cxx2
-rw-r--r--sw/source/ui/vba/vbacheckbox.cxx2
-rw-r--r--sw/source/ui/vba/vbaformfield.cxx2
-rw-r--r--sw/source/ui/vba/vbaformfields.cxx2
-rw-r--r--unotools/source/i18n/localedatawrapper.cxx4
-rw-r--r--vcl/generic/app/gensys.cxx2
-rw-r--r--vcl/generic/print/genprnpsp.cxx6
-rw-r--r--vcl/headless/svpprn.cxx2
-rw-r--r--vcl/source/app/settings.cxx12
-rw-r--r--vcl/source/window/menu.cxx2
-rw-r--r--vcl/source/window/printdlg.cxx6
-rw-r--r--xmloff/source/draw/eventimp.cxx4
-rw-r--r--xmloff/source/draw/shapeexport2.cxx4
-rw-r--r--xmloff/source/forms/elementimport.cxx2
-rw-r--r--xmloff/source/transform/EventOASISTContext.cxx4
28 files changed, 52 insertions, 52 deletions
diff --git a/reportdesign/source/filter/xml/dbloader2.cxx b/reportdesign/source/filter/xml/dbloader2.cxx
index b8bdba570372..ff7ebac5d145 100644
--- a/reportdesign/source/filter/xml/dbloader2.cxx
+++ b/reportdesign/source/filter/xml/dbloader2.cxx
@@ -63,7 +63,7 @@ ORptTypeDetection::ORptTypeDetection(Reference< XComponentContext > const & xCon
if ( !sTemp.isEmpty() )
{
INetURLObject aURL(sTemp);
- if ( aURL.GetExtension().equalsIgnoreAsciiCaseAscii("orp") )
+ if ( aURL.GetExtension().equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("orp")) )
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("StarBaseReport"));
else
{
diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx
index 23e74d1a4e65..2efb2b845ac2 100644
--- a/sal/osl/w32/procimpl.cxx
+++ b/sal/osl/w32/procimpl.cxx
@@ -380,9 +380,9 @@ namespace /* private */
bool is_batch_file(const rtl::OUString& file_name)
{
rtl::OUString ext = get_file_extension(file_name);
- return (ext.equalsIgnoreAsciiCaseAscii("bat") ||
- ext.equalsIgnoreAsciiCaseAscii("cmd") ||
- ext.equalsIgnoreAsciiCaseAscii("btm"));
+ return (ext.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("bat")) ||
+ ext.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("cmd")) ||
+ ext.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("btm")));
}
//##########################################################
diff --git a/sc/source/filter/excel/xlescher.cxx b/sc/source/filter/excel/xlescher.cxx
index 4c894bf2ae07..ba76e58a61e3 100644
--- a/sc/source/filter/excel/xlescher.cxx
+++ b/sc/source/filter/excel/xlescher.cxx
@@ -345,7 +345,7 @@ String XclControlHelper::ExtractFromMacroDescriptor(
const ScriptEventDescriptor& rDescriptor, XclTbxEventType eEventType, SfxObjectShell* /*pShell*/ )
{
if( (!rDescriptor.ScriptCode.isEmpty()) &&
- rDescriptor.ScriptType.equalsIgnoreAsciiCaseAscii( "Script" ) &&
+ rDescriptor.ScriptType.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("Script")) &&
rDescriptor.ListenerType.equalsAscii( spTbxListenerData[ eEventType ].mpcListenerType ) &&
rDescriptor.EventMethod.equalsAscii( spTbxListenerData[ eEventType ].mpcEventMethod ) )
return XclTools::GetXclMacroName( rDescriptor.ScriptCode );
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx
index fe74c56907b2..9f5085f1031c 100644
--- a/sc/source/ui/vba/vbaapplication.cxx
+++ b/sc/source/ui/vba/vbaapplication.cxx
@@ -342,7 +342,7 @@ ScVbaApplication::getSelection() throw (uno::RuntimeException)
uno::Reference< lang::XServiceInfo > xServiceInfo( aSelection, uno::UNO_QUERY_THROW );
rtl::OUString sImplementationName = xServiceInfo->getImplementationName();
- if( sImplementationName.equalsIgnoreAsciiCaseAscii("com.sun.star.drawing.SvxShapeCollection") )
+ if( sImplementationName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.SvxShapeCollection")) )
{
uno::Reference< drawing::XShapes > xShapes( aSelection, uno::UNO_QUERY_THROW );
uno::Reference< container::XIndexAccess > xIndexAccess( xShapes, uno::UNO_QUERY_THROW );
diff --git a/sc/source/ui/vba/vbaeventshelper.cxx b/sc/source/ui/vba/vbaeventshelper.cxx
index 2854586923d6..b085bc385363 100644
--- a/sc/source/ui/vba/vbaeventshelper.cxx
+++ b/sc/source/ui/vba/vbaeventshelper.cxx
@@ -371,7 +371,7 @@ void SAL_CALL ScVbaEventListener::changesOccurred( const util::ChangesEvent& rEv
util::ElementChange aChange = rEvent.Changes[ 0 ];
OUString sOperation;
aChange.Accessor >>= sOperation;
- if( !sOperation.equalsIgnoreAsciiCaseAscii("cell-change") )
+ if( !sOperation.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("cell-change")) )
return;
if( nCount == 1 )
@@ -394,7 +394,7 @@ void SAL_CALL ScVbaEventListener::changesOccurred( const util::ChangesEvent& rEv
aChange.Accessor >>= sOperation;
uno::Reference< table::XCellRange > xRangeObj;
aChange.ReplacedElement >>= xRangeObj;
- if( xRangeObj.is() && sOperation.equalsIgnoreAsciiCaseAscii("cell-change") )
+ if( xRangeObj.is() && sOperation.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("cell-change")) )
{
uno::Reference< sheet::XCellRangeAddressable > xCellRangeAddressable( xRangeObj, uno::UNO_QUERY );
if( xCellRangeAddressable.is() )
diff --git a/sc/source/ui/vba/vbafont.cxx b/sc/source/ui/vba/vbafont.cxx
index 216b0b7232c4..c3630abb9b06 100644
--- a/sc/source/ui/vba/vbafont.cxx
+++ b/sc/source/ui/vba/vbafont.cxx
@@ -321,10 +321,10 @@ ScVbaFont::setFontStyle( const uno::Any& aValue ) throw( uno::RuntimeException )
std::vector< rtl::OUString >::iterator it;
for( it = aTokens.begin(); it != aTokens.end(); ++it )
{
- if( (*it).equalsIgnoreAsciiCaseAscii( "Bold" ) )
+ if( (*it).equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("Bold")) )
bBold = sal_True;
- if( (*it).equalsIgnoreAsciiCaseAscii( "Italic" ) )
+ if( (*it).equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("Italic")) )
bItalic = sal_True;
}
diff --git a/scripting/source/basprov/basprov.cxx b/scripting/source/basprov/basprov.cxx
index 41b10751b397..bb89385e4946 100644
--- a/scripting/source/basprov/basprov.cxx
+++ b/scripting/source/basprov/basprov.cxx
@@ -160,11 +160,11 @@ namespace basprov
if ( xUriRef.is() )
{
::rtl::OUString aScheme = xUriRef->getScheme();
- if ( aScheme.equalsIgnoreAsciiCaseAscii( "file" ) )
+ if ( aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("file")) )
{
aFileURL = aLinkURL;
}
- else if ( aScheme.equalsIgnoreAsciiCaseAscii( "vnd.sun.star.pkg" ) )
+ else if ( aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("vnd.sun.star.pkg")) )
{
::rtl::OUString aAuthority = xUriRef->getAuthority();
if ( aAuthority.matchIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "vnd.sun.star.expand:" ) ) )
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx
index e5b87ed5eff1..b54acde52707 100644
--- a/sd/source/filter/eppt/pptx-text.cxx
+++ b/sd/source/filter/eppt/pptx-text.cxx
@@ -930,8 +930,8 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, sal_Int1
case SVX_NUM_CHAR_SPECIAL : // Bullet
{
- if ( aFontDesc.Name.equalsIgnoreAsciiCaseAscii("starsymbol") ||
- aFontDesc.Name.equalsIgnoreAsciiCaseAscii("opensymbol") )
+ if ( aFontDesc.Name.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("starsymbol")) ||
+ aFontDesc.Name.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("opensymbol")) )
{
String sFontName = aFontDesc.Name;
String sNumStr = cBulletId;
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx
index 59a772938c30..dba3e460a294 100644
--- a/sd/source/ui/unoidl/sddetect.cxx
+++ b/sd/source/ui/unoidl/sddetect.cxx
@@ -365,7 +365,7 @@ SdFilterDetect::~SdFilterDetect()
if( SvtModuleOptions().IsImpress() )
{
INetURLObject aCheckURL( aFileName );
- if( aCheckURL.getExtension().equalsIgnoreAsciiCaseAscii( "cgm" ) )
+ if( aCheckURL.getExtension().equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("cgm")) )
{
sal_uInt8 n8;
pStm->Seek( STREAM_SEEK_TO_BEGIN );
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx
index c8a307d2782a..cdc164271923 100644
--- a/slideshow/source/engine/slide/slideimpl.cxx
+++ b/slideshow/source/engine/slide/slideimpl.cxx
@@ -1088,7 +1088,7 @@ bool SlideImpl::applyInitialShapeAttributes(
for( ::std::size_t j=0; j<nShapePropSize; ++j )
{
bool bVisible=false;
- if( rShapeProps[j].Name.equalsIgnoreAsciiCaseAscii("visibility") &&
+ if( rShapeProps[j].Name.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("visibility")) &&
extractValue( bVisible,
rShapeProps[j].Value,
pShape,
diff --git a/slideshow/source/engine/tools.cxx b/slideshow/source/engine/tools.cxx
index 7dabb90b060e..0603d6a323f7 100644
--- a/slideshow/source/engine/tools.cxx
+++ b/slideshow/source/engine/tools.cxx
@@ -417,14 +417,14 @@ namespace slideshow
// we also take the strings "true" and "false",
// as well as "on" and "off" here
- if( aString.equalsIgnoreAsciiCaseAscii("true") ||
- aString.equalsIgnoreAsciiCaseAscii("on") )
+ if( aString.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true")) ||
+ aString.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("on")) )
{
o_rValue = true;
return true;
}
- if( aString.equalsIgnoreAsciiCaseAscii("false") ||
- aString.equalsIgnoreAsciiCaseAscii("off") )
+ if( aString.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("false")) ||
+ aString.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("off")) )
{
o_rValue = false;
return true;
diff --git a/svtools/source/filter/FilterConfigCache.cxx b/svtools/source/filter/FilterConfigCache.cxx
index f130b25dcb46..66ffb8da6aaf 100644
--- a/svtools/source/filter/FilterConfigCache.cxx
+++ b/svtools/source/filter/FilterConfigCache.cxx
@@ -213,10 +213,10 @@ void FilterConfigCache::ImplInit()
xFilterSet->getPropertyValue(SFLAGS) >>= lFlags;
if (lFlags.getLength()!=1 || lFlags[0].isEmpty())
continue;
- if (lFlags[0].equalsIgnoreAsciiCaseAscii("import"))
+ if (lFlags[0].equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("import")))
aEntry.nFlags = 1;
else
- if (lFlags[0].equalsIgnoreAsciiCaseAscii("export"))
+ if (lFlags[0].equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("export")))
aEntry.nFlags = 2;
OUString sUIComponent;
diff --git a/svtools/source/misc/langhelp.cxx b/svtools/source/misc/langhelp.cxx
index b607cd4650ac..88a8c785061f 100644
--- a/svtools/source/misc/langhelp.cxx
+++ b/svtools/source/misc/langhelp.cxx
@@ -33,8 +33,8 @@
void localizeWebserviceURI( ::rtl::OUString& rURI )
{
::rtl::OUString aLang = Application::GetSettings().GetUILocale().Language;
- if ( aLang.equalsIgnoreAsciiCaseAscii( "pt" )
- && Application::GetSettings().GetUILocale().Country.equalsIgnoreAsciiCaseAscii("br") )
+ if ( aLang.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("pt"))
+ && Application::GetSettings().GetUILocale().Country.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("br")) )
{
aLang = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "pt-br" ));
}
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx
index 4bfacb468596..a2d5d054d3d1 100644
--- a/svx/source/gallery2/gallery1.cxx
+++ b/svx/source/gallery2/gallery1.cxx
@@ -321,7 +321,7 @@ void Gallery::ImplLoadSubDirs( const INetURLObject& rBaseURL, sal_Bool& rbDirIsR
{
INetURLObject aThmURL( xContentAccess->queryContentIdentifierString() );
- if(aThmURL.GetExtension().equalsIgnoreAsciiCaseAscii("thm"))
+ if(aThmURL.GetExtension().equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("thm")))
{
INetURLObject aSdgURL( aThmURL); aSdgURL.SetExtension( s_sSDG_EXT );
INetURLObject aSdvURL( aThmURL ); aSdvURL.SetExtension( s_sSDV_EXT );
diff --git a/sw/source/ui/vba/vbacheckbox.cxx b/sw/source/ui/vba/vbacheckbox.cxx
index 65b55a3142da..61509e9dc16e 100644
--- a/sw/source/ui/vba/vbacheckbox.cxx
+++ b/sw/source/ui/vba/vbacheckbox.cxx
@@ -59,7 +59,7 @@ sal_Bool SAL_CALL SwVbaCheckBox::getValue() throw ( uno::RuntimeException )
{
if( mxFormField->getParamName(i).equalsIgnoreAsciiCaseAscii( ECMA_FORMCHECKBOX_CHECKED ) )
{
- if( mxFormField->getParamValue(i).equalsIgnoreAsciiCaseAscii("on") )
+ if( mxFormField->getParamValue(i).equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("on")) )
bValue = sal_True;
else
bValue = sal_False;
diff --git a/sw/source/ui/vba/vbaformfield.cxx b/sw/source/ui/vba/vbaformfield.cxx
index ed6bf39a6018..ec3e16bc74d1 100644
--- a/sw/source/ui/vba/vbaformfield.cxx
+++ b/sw/source/ui/vba/vbaformfield.cxx
@@ -64,7 +64,7 @@ rtl::OUString SAL_CALL SwVbaFormField::getResult() throw ( uno::RuntimeException
{
if( mxFormField->getParamName(i).equalsIgnoreAsciiCaseAscii( ECMA_FORMCHECKBOX_CHECKED ) )
{
- if( mxFormField->getParamValue(i).equalsIgnoreAsciiCaseAscii("on") )
+ if( mxFormField->getParamValue(i).equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("on")) )
nValue = 1;
else
nValue = 0;
diff --git a/sw/source/ui/vba/vbaformfields.cxx b/sw/source/ui/vba/vbaformfields.cxx
index 43c8e3cd5efa..632aa0e5469b 100644
--- a/sw/source/ui/vba/vbaformfields.cxx
+++ b/sw/source/ui/vba/vbaformfields.cxx
@@ -47,7 +47,7 @@ rtl::OUString lcl_getFormFieldName( const uno::Reference< text::XFormField >& xF
sal_Int32 nCount = xFormField->getParamCount();
for( sal_Int32 i = 0; i < nCount; i++ )
{
- if( xFormField->getParamName(i).equalsIgnoreAsciiCaseAscii( "Name" ) )
+ if( xFormField->getParamName(i).equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("Name")) )
{
sName = xFormField->getParamValue(i);
OSL_TRACE("lcl_getFormFieldName: %s", rtl::OUStringToOString( sName, RTL_TEXTENCODING_UTF8 ).getStr() );
diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx
index 9d55ce38b31c..977b7b94e1e6 100644
--- a/unotools/source/i18n/localedatawrapper.cxx
+++ b/unotools/source/i18n/localedatawrapper.cxx
@@ -1088,8 +1088,8 @@ void LocaleDataWrapper::getDigitGroupingImpl()
if (!aGrouping[0])
{
i18n::LanguageCountryInfo aLCInfo( getLanguageCountryInfo());
- if (aLCInfo.Country.equalsIgnoreAsciiCaseAscii( "IN") || // India
- aLCInfo.Country.equalsIgnoreAsciiCaseAscii( "BT")) // Bhutan
+ if (aLCInfo.Country.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("IN")) || // India
+ aLCInfo.Country.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("BT")) ) // Bhutan
{
aGrouping[0] = 3;
aGrouping[1] = 2;
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 );
}
diff --git a/xmloff/source/draw/eventimp.cxx b/xmloff/source/draw/eventimp.cxx
index 202b5c73097a..9366a72fea9d 100644
--- a/xmloff/source/draw/eventimp.cxx
+++ b/xmloff/source/draw/eventimp.cxx
@@ -340,7 +340,7 @@ void SdXMLEventContext::EndElement()
nPropertyCount += 1;
break;
case ClickAction_MACRO:
- if ( msLanguage.equalsIgnoreAsciiCaseAscii("starbasic") )
+ if ( msLanguage.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("starbasic")) )
nPropertyCount += 1;
break;
@@ -360,7 +360,7 @@ void SdXMLEventContext::EndElement()
if( ClickAction_MACRO == meClickAction )
{
- if ( msLanguage.equalsIgnoreAsciiCaseAscii("starbasic") )
+ if ( msLanguage.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("starbasic")) )
{
OUString sLibrary;
const OUString& rApp = GetXMLToken( XML_APPLICATION );
diff --git a/xmloff/source/draw/shapeexport2.cxx b/xmloff/source/draw/shapeexport2.cxx
index 3629e3687911..0e6c2a12511b 100644
--- a/xmloff/source/draw/shapeexport2.cxx
+++ b/xmloff/source/draw/shapeexport2.cxx
@@ -523,8 +523,8 @@ void XMLShapeExport::ImpExportEvents( const uno::Reference< drawing::XShape >& x
if( nFound & FOUND_LIBRARY )
{
OUString sLocation( GetXMLToken(
- (aStrLibrary.equalsIgnoreAsciiCaseAscii("StarOffice") ||
- aStrLibrary.equalsIgnoreAsciiCaseAscii("application") ) ? XML_APPLICATION
+ (aStrLibrary.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("StarOffice")) ||
+ aStrLibrary.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("application")) ) ? XML_APPLICATION
: XML_DOCUMENT ) );
OUStringBuffer sTmp( sLocation.getLength() + aStrMacro.getLength() + 1 );
sTmp = sLocation;
diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx
index a3044803bc22..9100f599759c 100644
--- a/xmloff/source/forms/elementimport.cxx
+++ b/xmloff/source/forms/elementimport.cxx
@@ -1455,7 +1455,7 @@ namespace xmloff
SvXMLImportContext* OTextLikeImport::CreateChildContext( sal_uInt16 _nPrefix, const ::rtl::OUString& _rLocalName,
const Reference< XAttributeList >& _rxAttrList )
{
- if ( ( XML_NAMESPACE_TEXT == _nPrefix ) && _rLocalName.equalsIgnoreAsciiCaseAscii( "p" ) )
+ if ( ( XML_NAMESPACE_TEXT == _nPrefix ) && _rLocalName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("p")) )
{
OSL_ENSURE( m_eElementType == OControlElement::TEXT_AREA,
"OTextLikeImport::CreateChildContext: text paragraphs in a non-text-area?" );
diff --git a/xmloff/source/transform/EventOASISTContext.cxx b/xmloff/source/transform/EventOASISTContext.cxx
index cf8eeda19284..8f75bbc63ea3 100644
--- a/xmloff/source/transform/EventOASISTContext.cxx
+++ b/xmloff/source/transform/EventOASISTContext.cxx
@@ -183,7 +183,7 @@ bool ParseURLAsString(
}
} while ( params >= 0 );
- if ( aLanguage.equalsIgnoreAsciiCaseAscii( "basic" ) )
+ if ( aLanguage.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("basic")) )
{
return sal_True;
}
@@ -216,7 +216,7 @@ bool ParseURL(
{
OUString aLanguage = xUrl->getParameter( aLanguageKey );
- if ( aLanguage.equalsIgnoreAsciiCaseAscii( "basic" ) )
+ if ( aLanguage.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("basic")) )
{
*pName = xUrl->getName();