diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-14 10:34:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-14 11:30:42 +0200 |
commit | 4ccd802d9a0530ec74b52d2ad7fbaa2d085223cb (patch) | |
tree | d8125e758537f4f2c7af52ef55a9a082e8645d93 /svx/source/tbxctrls/tbunosearchcontrollers.cxx | |
parent | 4948a0137992b33c7adfd3d91eb7b0387da11dff (diff) |
use more OUString::operator== in svx
Change-Id: Ice996c741e239767a7a15fe9b11147f5384150ba
Reviewed-on: https://gerrit.libreoffice.org/39940
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/tbxctrls/tbunosearchcontrollers.cxx')
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index c50add3bfed1..91347d99cad5 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -367,7 +367,7 @@ void SearchToolbarControllersManager::registryController( const css::uno::Refere sal_Int32 nSize = pIt->second.size(); for (sal_Int32 i=0; i<nSize; ++i) { - if (pIt->second[i].Name.equals(sCommandURL)) + if (pIt->second[i].Name == sCommandURL) return; } @@ -384,7 +384,7 @@ void SearchToolbarControllersManager::freeController( const css::uno::Reference< { for (SearchToolbarControllersVec::iterator pItCtrl=pIt->second.begin(); pItCtrl!=pIt->second.end(); ++pItCtrl) { - if (pItCtrl->Name.equals(sCommandURL)) + if (pItCtrl->Name == sCommandURL) { pIt->second.erase(pItCtrl); break; @@ -405,7 +405,7 @@ css::uno::Reference< css::frame::XStatusListener > SearchToolbarControllersManag { for (SearchToolbarControllersVec::iterator pItCtrl =pIt->second.begin(); pItCtrl != pIt->second.end(); ++pItCtrl) { - if (pItCtrl->Name.equals(sCommandURL)) + if (pItCtrl->Name == sCommandURL) { pItCtrl->Value >>= xStatusListener; break; |