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 /desktop | |
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 'desktop')
-rw-r--r-- | desktop/source/migration/migration.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx index 3b3c6a5c08b9..64cf32e23441 100644 --- a/desktop/source/migration/migration.cxx +++ b/desktop/source/migration/migration.cxx @@ -1054,7 +1054,7 @@ void MigrationImpl::runServices() { OUString sExtension(sToolbarName.copy(nIndex)); OUString sToolbarResourceName(sToolbarName.copy(0, nIndex)); - if (!sToolbarResourceName.isEmpty() && sExtension.equalsAsciiL(".xml", 4)) + if (!sToolbarResourceName.isEmpty() && sExtension.startsWith(".xml")) aModuleInfo.m_vToolbars.push_back(sToolbarResourceName); } } |