diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-19 12:47:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-19 12:49:29 +0200 |
commit | 363cc397172f2b0a94d9c4dc44fc8d95072795a3 (patch) | |
tree | 16a23a796e2db536d7af3f0144bce8fd01570e26 /sfx2/source | |
parent | 02a2203580226766c4b3b8778430774ff76f90e9 (diff) |
convert equalsAsciiL calls to startWith calls where possible
Simplify code like:
aStr.equalsAsciiL( "%", 1 )
to
aStr.startsWith( "%" )
Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 66d54208fd86..7fdde8e0a71c 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -602,8 +602,8 @@ void SAL_CALL SfxDispatchController_Impl::dispatch( const ::com::sun::star::util if ( pDispatch && ( - (aURL.Protocol.equalsAsciiL( ".uno:", 5 ) && aURL.Path == aDispatchURL.Path) || - (aURL.Protocol.equalsAsciiL( "slot:", 5 ) && aURL.Path.toInt32() == GetId()) + (aURL.Protocol.startsWith( ".uno:" ) && aURL.Path == aDispatchURL.Path) || + (aURL.Protocol.startsWith( "slot:" ) && aURL.Path.toInt32() == GetId()) ) ) { @@ -629,17 +629,17 @@ void SAL_CALL SfxDispatchController_Impl::dispatch( const ::com::sun::star::util for( sal_Int32 n=0; n<nCount; n++ ) { const ::com::sun::star::beans::PropertyValue& rProp = aArgs[n]; - if( rProp.Name.equalsAsciiL("SynchronMode",12)) + if( rProp.Name.startsWith("SynchronMode")) { if( rProp.Value >>=bTemp ) nCall = bTemp ? SFX_CALLMODE_SYNCHRON : SFX_CALLMODE_ASYNCHRON; } - else if( rProp.Name.equalsAsciiL("Bookmark",8)) + else if( rProp.Name.startsWith("Bookmark")) { nMarkArg = n; aAddArgs.push_back( aArgs[n] ); } - else if( rProp.Name.equalsAsciiL("KeyModifier",11)) + else if( rProp.Name.startsWith("KeyModifier")) rProp.Value >>= nModifier; else aAddArgs.push_back( aArgs[n] ); |