summaryrefslogtreecommitdiff
path: root/idl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-21 11:34:01 +0200
committerNoel Grandin <noel@peralex.com>2013-11-21 13:29:29 +0200
commit6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4 (patch)
treeff375d3a9e989c731a42a1255b8e1cede2bb6bbd /idl/source
parent89633c6da1cde46983926dcc2e0f8e08de0e9378 (diff)
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsL
Convert code like this: if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aStr == "rem") which compiles down to the same code. Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
Diffstat (limited to 'idl/source')
-rw-r--r--idl/source/objects/slot.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index 4d78be88dbc8..c54010439a42 100644
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -1090,7 +1090,7 @@ void SvMetaSlot::WriteSlotStubs( const OString& rShellName,
OString aMethodName( GetExecMethod() );
if ( !aMethodName.isEmpty() &&
- !aMethodName.equalsL(RTL_CONSTASCII_STRINGPARAM("NoExec")) )
+ aMethodName != "NoExec" )
{
sal_Bool bIn = sal_False;
for( size_t n = 0; n < rList.size(); n++ )
@@ -1115,7 +1115,7 @@ void SvMetaSlot::WriteSlotStubs( const OString& rShellName,
aMethodName = GetStateMethod();
if (!aMethodName.isEmpty() &&
- !aMethodName.equalsL(RTL_CONSTASCII_STRINGPARAM("NoState")))
+ aMethodName != "NoState")
{
sal_Bool bIn = sal_False;
for ( size_t n=0; n < rList.size(); n++ )
@@ -1252,7 +1252,7 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount,
// write ExecMethod, with standard name if not specified
if( !GetExecMethod().isEmpty() &&
- !GetExecMethod().equalsL(RTL_CONSTASCII_STRINGPARAM("NoExec")))
+ GetExecMethod() != "NoExec")
{
rOutStm << "SFX_STUB_PTR(" << rShellName.getStr() << ','
<< GetExecMethod().getStr() << ')';
@@ -1263,7 +1263,7 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount,
// write StateMethod, with standard name if not specified
if( !GetStateMethod().isEmpty() &&
- !GetStateMethod().equalsL(RTL_CONSTASCII_STRINGPARAM("NoState")))
+ GetStateMethod() != "NoState")
{
rOutStm << "SFX_STUB_PTR(" << rShellName.getStr() << ','
<< GetStateMethod().getStr() << ')';