diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 13:18:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 13:56:08 +0200 |
commit | acebbee971136e6ee0a7bc75bd57d937d6e1c295 (patch) | |
tree | f56fec189343e1d9297918037b55263733243d7b /idl/source | |
parent | d894fee80e40519cb579987b95cb3d19345dfa71 (diff) |
remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls
Convert code like:
if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
if (aByteStr.startsWith("rem"))
Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
Diffstat (limited to 'idl/source')
-rw-r--r-- | idl/source/objects/slot.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 4d78be88dbc8..fd0d51bdb8d3 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.startsWith("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.startsWith("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().startsWith("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().startsWith("NoState")) { rOutStm << "SFX_STUB_PTR(" << rShellName.getStr() << ',' << GetStateMethod().getStr() << ')'; |