diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-09 12:51:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-12-09 12:53:18 +0200 |
commit | c5b7a5fd191a8ec65a64980fe3197832dba1ffae (patch) | |
tree | a4da3b16cd52626274819345cfbac480b04eef52 /sfx2 | |
parent | aefd8ff742f8952327f1bddc37e62317d69ffb7d (diff) |
fix equalsAscii conversion. Noticed in fdo#72391
In commit 363cc397172f2b0a94d9c4dc44fc8d95072795a3
"convert equalsAsciiL calls to startWith calls where possible"
I incorrectly converted equalsAsciiL calls to startsWith calls.
This commit fixes those places to use the == OUString operator.
Change-Id: If76993baf73e3d8fb3bbcf6e8314e59fdc1207b6
Diffstat (limited to 'sfx2')
-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 146245afcd12..beb36f7a7e21 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.startsWith( ".uno:" ) && aURL.Path == aDispatchURL.Path) || - (aURL.Protocol.startsWith( "slot:" ) && aURL.Path.toInt32() == GetId()) + (aURL.Protocol == ".uno:" && aURL.Path == aDispatchURL.Path) || + (aURL.Protocol == "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.startsWith("SynchronMode")) + if( rProp.Name == "SynchronMode" ) { if( rProp.Value >>=bTemp ) nCall = bTemp ? SFX_CALLMODE_SYNCHRON : SFX_CALLMODE_ASYNCHRON; } - else if( rProp.Name.startsWith("Bookmark")) + else if( rProp.Name == "Bookmark" ) { nMarkArg = n; aAddArgs.push_back( aArgs[n] ); } - else if( rProp.Name.startsWith("KeyModifier")) + else if( rProp.Name == "KeyModifier" ) rProp.Value >>= nModifier; else aAddArgs.push_back( aArgs[n] ); |