summaryrefslogtreecommitdiff
path: root/dbaccess/source/core/recovery
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 /dbaccess/source/core/recovery
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 'dbaccess/source/core/recovery')
-rw-r--r--dbaccess/source/core/recovery/settingsimport.cxx6
-rw-r--r--dbaccess/source/core/recovery/subcomponentrecovery.cxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/dbaccess/source/core/recovery/settingsimport.cxx b/dbaccess/source/core/recovery/settingsimport.cxx
index fd46b17f5bc6..3b22a201d377 100644
--- a/dbaccess/source/core/recovery/settingsimport.cxx
+++ b/dbaccess/source/core/recovery/settingsimport.cxx
@@ -154,7 +154,7 @@ namespace dbaccess
::rtl::OUString sLocalName;
split( i_rElementName, sNamespace, sLocalName );
- if ( sLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "config-item-set" ) ) )
+ if ( sLocalName == "config-item-set" )
return new ConfigItemSetImport( m_rSettings );
#if OSL_DEBUG_LEVEL > 0
@@ -273,9 +273,9 @@ namespace dbaccess
::rtl::OUString sLocalName;
split( i_rElementName, sNamespace, sLocalName );
- if ( sLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "config-item-set" ) ) )
+ if ( sLocalName == "config-item-set" )
return new ConfigItemSetImport( m_aChildSettings );
- if ( sLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "config-item" ) ) )
+ if ( sLocalName == "config-item" )
return new ConfigItemImport( m_aChildSettings );
#if OSL_DEBUG_LEVEL > 0
diff --git a/dbaccess/source/core/recovery/subcomponentrecovery.cxx b/dbaccess/source/core/recovery/subcomponentrecovery.cxx
index 0f0519510326..a8d28960fba0 100644
--- a/dbaccess/source/core/recovery/subcomponentrecovery.cxx
+++ b/dbaccess/source/core/recovery/subcomponentrecovery.cxx
@@ -334,7 +334,7 @@ namespace dbaccess
if ( m_aStates.empty() )
{
- if ( i_Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "office:settings" ) ) )
+ if ( i_Name == "office:settings" )
{
pNewState = new OfficeSettingsImport( m_aSettings );
}
@@ -503,7 +503,7 @@ namespace dbaccess
break;
case REPORT:
- if ( sModuleIdentifier.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.report.ReportDefinition" ) ) )
+ if ( sModuleIdentifier == "com.sun.star.report.ReportDefinition" )
{
// it's an SRB report designer
m_aCompDesc.bForEditing = true;
@@ -516,7 +516,7 @@ namespace dbaccess
break;
default:
- if ( sModuleIdentifier.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.sdb.RelationDesign" ) ) )
+ if ( sModuleIdentifier == "com.sun.star.sdb.RelationDesign" )
{
m_eType = RELATION_DESIGN;
m_aCompDesc.bForEditing = true;