diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-13 09:56:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-13 12:05:42 +0200 |
commit | dc63cc326ee5757124cef45e470d290e6e32002e (patch) | |
tree | e912d5e06b8602e391f3aa7e084e92c808f2fcfb /desktop/source/migration | |
parent | improve useuniqueptr loplugin to find arrays (diff) | |
download | core-dc63cc326ee5757124cef45e470d290e6e32002e.tar.gz core-dc63cc326ee5757124cef45e470d290e6e32002e.zip |
use more OUString::operator== in dbaccess..filter
Change-Id: Ib7b4f2b2403ce766a7db2f6ffc118468e7677776
Reviewed-on: https://gerrit.libreoffice.org/39889
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/migration')
-rw-r--r-- | desktop/source/migration/migration.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx index 807e335dc386..0f5b4693a651 100644 --- a/desktop/source/migration/migration.cxx +++ b/desktop/source/migration/migration.cxx @@ -941,7 +941,7 @@ std::vector< MigrationModuleInfo > MigrationImpl::dectectUIChangesForAllModules( for (sal_Int32 j=0; j<lToolbars.getLength(); ++j) { OUString sToolbarName = lToolbars[j]; if (sToolbarName.getLength()>=nCustomLen && - sToolbarName.copy(0, nCustomLen).equals(RESOURCEURL_CUSTOM_ELEMENT)) + sToolbarName.copy(0, nCustomLen) == RESOURCEURL_CUSTOM_ELEMENT) continue; aModuleInfo.sModuleShortName = sModuleShortName; @@ -1106,7 +1106,7 @@ void MigrationImpl::mergeOldToNewVersion(const uno::Reference< ui::XUIConfigurat } } - if (sCmd.equals(it->m_sPrevSibling)) + if (sCmd == it->m_sPrevSibling) break; } @@ -1129,7 +1129,7 @@ uno::Reference< ui::XUIConfigurationManager > NewVersionUIInfo::getConfigManager uno::Reference< ui::XUIConfigurationManager > xCfgManager; for ( const css::beans::PropertyValue& rProp : m_lCfgManagerSeq) { - if (rProp.Name.equals(sModuleShortName)) { + if (rProp.Name == sModuleShortName) { rProp.Value >>= xCfgManager; break; } @@ -1143,7 +1143,7 @@ uno::Reference< container::XIndexContainer > NewVersionUIInfo::getNewMenubarSett uno::Reference< container::XIndexContainer > xNewMenuSettings; for (sal_Int32 i=0; i<m_lNewVersionMenubarSettingsSeq.getLength(); ++i) { - if (m_lNewVersionMenubarSettingsSeq[i].Name.equals(sModuleShortName)) { + if (m_lNewVersionMenubarSettingsSeq[i].Name == sModuleShortName) { m_lNewVersionMenubarSettingsSeq[i].Value >>= xNewMenuSettings; break; } @@ -1157,11 +1157,11 @@ uno::Reference< container::XIndexContainer > NewVersionUIInfo::getNewToolbarSett uno::Reference< container::XIndexContainer > xNewToolbarSettings; for (sal_Int32 i=0; i<m_lNewVersionToolbarSettingsSeq.getLength(); ++i) { - if (m_lNewVersionToolbarSettingsSeq[i].Name.equals(sModuleShortName)) { + if (m_lNewVersionToolbarSettingsSeq[i].Name == sModuleShortName) { uno::Sequence< beans::PropertyValue > lToolbarSettingsSeq; m_lNewVersionToolbarSettingsSeq[i].Value >>= lToolbarSettingsSeq; for (sal_Int32 j=0; j<lToolbarSettingsSeq.getLength(); ++j) { - if (lToolbarSettingsSeq[j].Name.equals(sToolbarName)) { + if (lToolbarSettingsSeq[j].Name == sToolbarName) { lToolbarSettingsSeq[j].Value >>= xNewToolbarSettings; break; } |