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 /framework/source/uifactory | |
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 'framework/source/uifactory')
-rw-r--r-- | framework/source/uifactory/addonstoolboxfactory.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/uifactory/addonstoolboxfactory.cxx b/framework/source/uifactory/addonstoolboxfactory.cxx index 1a7822b58364..7c7261ed1743 100644 --- a/framework/source/uifactory/addonstoolboxfactory.cxx +++ b/framework/source/uifactory/addonstoolboxfactory.cxx @@ -113,18 +113,18 @@ sal_Bool AddonsToolBoxFactory::hasButtonsInContext( const Sequence< PropertyValue >& rPropSeq = rPropSeqSeq[i]; for ( sal_uInt32 j = 0; j < (sal_uInt32)rPropSeq.getLength(); j++ ) { - if ( rPropSeq[j].Name.equalsAsciiL( "Context", 7 )) + if ( rPropSeq[j].Name.startsWith( "Context" )) { OUString aContextList; if ( rPropSeq[j].Value >>= aContextList ) bIsCorrectContext = IsCorrectContext( aModuleIdentifier, aContextList ); nPropChecked++; } - else if ( rPropSeq[j].Name.equalsAsciiL( "URL", 3 )) + else if ( rPropSeq[j].Name.startsWith( "URL" )) { OUString aURL; rPropSeq[j].Value >>= aURL; - bIsButton = !aURL.equalsAsciiL( "private:separator", 17 ); + bIsButton = !aURL.startsWith( "private:separator" ); nPropChecked++; } |