summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 14:28:18 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 14:30:05 +0200
commit8a01ee624318ac08800af89d988971114637a04e (patch)
treee4acf35e42ab0c1d0b593bd8970fa2c435f90c95 /xmlscript
parent6cf547f02c79278430ee75483a3128076cfc609e (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmlflat_imexp/xmlbas_import.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx
index 062bdf32d4eb..59de3c9cd212 100644
--- a/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx
+++ b/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx
@@ -84,12 +84,12 @@ namespace xmlscript
::rtl::OUString aValue( xAttributes->getValueByUidName( nUid, rAttrName ) );
if ( !aValue.isEmpty() )
{
- if ( aValue.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "true" ) ) )
+ if ( aValue == "true" )
{
*pRet = sal_True;
return true;
}
- else if ( aValue.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "false" ) ) )
+ else if ( aValue == "false" )
{
*pRet = sal_False;
return true;
@@ -214,7 +214,7 @@ void BasicElementBase::processingInstruction( const ::rtl::OUString& /*rTarget*/
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "illegal namespace!" ) ),
Reference< XInterface >(), Any() );
}
- else if ( rLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "library-linked" ) ) )
+ else if ( rLocalName == "library-linked" )
{
if ( xAttributes.is() )
{
@@ -253,7 +253,7 @@ void BasicElementBase::processingInstruction( const ::rtl::OUString& /*rTarget*/
}
}
}
- else if ( rLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "library-embedded" ) ) )
+ else if ( rLocalName == "library-embedded" )
{
// TODO: create password protected libraries
@@ -355,7 +355,7 @@ void BasicElementBase::processingInstruction( const ::rtl::OUString& /*rTarget*/
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "illegal namespace!" ) ),
Reference< XInterface >(), Any() );
}
- else if ( rLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "module" ) ) )
+ else if ( rLocalName == "module" )
{
if ( xAttributes.is() )
{
@@ -420,7 +420,7 @@ void BasicElementBase::processingInstruction( const ::rtl::OUString& /*rTarget*/
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "illegal namespace!" ) ),
Reference< XInterface >(), Any() );
}
- else if ( rLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "source-code" ) ) )
+ else if ( rLocalName == "source-code" )
{
// TODO: password protected libraries
@@ -574,7 +574,7 @@ void BasicImport::setDocumentLocator( const Reference< xml::sax::XLocator >& /*x
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "illegal namespace!" ) ),
Reference< XInterface >(), Any() );
}
- else if ( rLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "libraries" ) ) )
+ else if ( rLocalName == "libraries" )
{
Reference< script::XLibraryContainer2 > xLibContainer;