diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-14 09:24:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-14 10:12:31 +0200 |
commit | d7e06e46acc2ee17101cef63e59b9f5efcbfab14 (patch) | |
tree | 7f2ee4381babadafaaaf94e1ca210e1d98e5aa14 /sd/source/ui | |
parent | e47fda7d4759f4ac911c882881dba1eee539726c (diff) |
use more OUString::operator== in scaddins..sdext
Change-Id: I8bc5c925f940283bc54698bbcba77efcca883273
Reviewed-on: https://gerrit.libreoffice.org/39937
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui')
24 files changed, 56 insertions, 56 deletions
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx index 7f5b85598462..2039d405659a 100644 --- a/sd/source/ui/animations/SlideTransitionPane.cxx +++ b/sd/source/ui/animations/SlideTransitionPane.cxx @@ -1062,7 +1062,7 @@ void SlideTransitionPane::updateVariants( size_t nPresetOffset ) size_t nFirstItem = 0, nItem = 1; for( const auto& aIt: rPresetList ) { - if( aIt->getSetId().equals( (*pFound)->getSetId() ) ) + if( aIt->getSetId() == (*pFound)->getSetId() ) { if (!nFirstItem) nFirstItem = nItem; diff --git a/sd/source/ui/framework/configuration/ConfigurationClassifier.cxx b/sd/source/ui/framework/configuration/ConfigurationClassifier.cxx index 4fd6ed2b6c4d..0f82b82f8658 100644 --- a/sd/source/ui/framework/configuration/ConfigurationClassifier.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationClassifier.cxx @@ -103,7 +103,7 @@ void ConfigurationClassifier::ClassifyResources ( { bool bFound (false); for (sal_Int32 j=0; j<nL2 && !bFound; ++j) - if (aA1[i]->getResourceURL().equals(aA2[j]->getResourceURL())) + if (aA1[i]->getResourceURL() == aA2[j]->getResourceURL()) bFound = true; if (bFound) @@ -119,7 +119,7 @@ void ConfigurationClassifier::ClassifyResources ( { bool bFound (false); for (sal_Int32 i=0; i<nL1 && !bFound; ++i) - if (aA2[j]->getResourceURL().equals(aA1[i]->getResourceURL())) + if (aA2[j]->getResourceURL() == aA1[i]->getResourceURL()) bFound = true; if ( ! bFound) diff --git a/sd/source/ui/framework/configuration/ResourceId.cxx b/sd/source/ui/framework/configuration/ResourceId.cxx index 7eec7882c999..35a8f98821ec 100644 --- a/sd/source/ui/framework/configuration/ResourceId.cxx +++ b/sd/source/ui/framework/configuration/ResourceId.cxx @@ -433,8 +433,8 @@ bool ResourceId::IsBoundToAnchor ( sal_uInt32 nCount = paAnchorURLs->getLength(); while (nOffset < nCount) { - if ( ! maResourceURLs[nLocalAnchorURLCount - nOffset].equals( - (*paAnchorURLs)[nCount - 1 - nOffset])) + if ( maResourceURLs[nLocalAnchorURLCount - nOffset] != + (*paAnchorURLs)[nCount - 1 - nOffset] ) { return false; } @@ -443,7 +443,7 @@ bool ResourceId::IsBoundToAnchor ( } if (bHasFirstAnchorURL) { - if ( ! psFirstAnchorURL->equals(maResourceURLs[nLocalAnchorURLCount - nOffset])) + if ( *psFirstAnchorURL != maResourceURLs[nLocalAnchorURLCount - nOffset] ) return false; } @@ -468,8 +468,8 @@ bool ResourceId::IsBoundToAnchor ( // id and the given anchor. for (sal_uInt32 nOffset=0; nOffset<nAnchorURLCount; ++nOffset) { - if ( ! maResourceURLs[nLocalAnchorURLCount - nOffset].equals( - rAnchorURLs[nAnchorURLCount - 1 - nOffset])) + if ( maResourceURLs[nLocalAnchorURLCount - nOffset] != + rAnchorURLs[nAnchorURLCount - 1 - nOffset] ) { return false; } diff --git a/sd/source/ui/framework/factories/BasicPaneFactory.cxx b/sd/source/ui/framework/factories/BasicPaneFactory.cxx index aea1f28b4811..0660bdabd107 100644 --- a/sd/source/ui/framework/factories/BasicPaneFactory.cxx +++ b/sd/source/ui/framework/factories/BasicPaneFactory.cxx @@ -72,7 +72,7 @@ public: */ bool mbIsReleased; - bool CompareURL(const OUString& rsPaneURL) const { return msPaneURL.equals(rsPaneURL); } + bool CompareURL(const OUString& rsPaneURL) const { return msPaneURL == rsPaneURL; } bool ComparePane(const Reference<XResource>& rxPane) const { return mxPane == rxPane; } }; diff --git a/sd/source/ui/framework/factories/BasicToolBarFactory.cxx b/sd/source/ui/framework/factories/BasicToolBarFactory.cxx index 3dd122c4154d..8967d4b4eb72 100644 --- a/sd/source/ui/framework/factories/BasicToolBarFactory.cxx +++ b/sd/source/ui/framework/factories/BasicToolBarFactory.cxx @@ -126,7 +126,7 @@ Reference<XResource> SAL_CALL BasicToolBarFactory::createResource ( Reference<XResource> xToolBar; - if (rxToolBarId->getResourceURL().equals(FrameworkHelper::msViewTabBarURL)) + if (rxToolBarId->getResourceURL() == FrameworkHelper::msViewTabBarURL) { xToolBar = new ViewTabBar(rxToolBarId, mxController); } diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx index 9eb50d7b5818..4c8cb0203a16 100644 --- a/sd/source/ui/framework/factories/BasicViewFactory.cxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx @@ -324,7 +324,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell ( { std::shared_ptr<ViewShell> pViewShell; const OUString& rsViewURL (rxViewId->getResourceURL()); - if (rsViewURL.equals(FrameworkHelper::msImpressViewURL)) + if (rsViewURL == FrameworkHelper::msImpressViewURL) { pViewShell.reset( new DrawViewShell( @@ -334,7 +334,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell ( pFrameView)); pViewShell->GetContentWindow()->set_id("impress_win"); } - else if (rsViewURL.equals(FrameworkHelper::msDrawViewURL)) + else if (rsViewURL == FrameworkHelper::msDrawViewURL) { pViewShell.reset( new GraphicViewShell ( @@ -343,7 +343,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell ( pFrameView)); pViewShell->GetContentWindow()->set_id("draw_win"); } - else if (rsViewURL.equals(FrameworkHelper::msOutlineViewURL)) + else if (rsViewURL == FrameworkHelper::msOutlineViewURL) { pViewShell.reset( new OutlineViewShell ( @@ -353,7 +353,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell ( pFrameView)); pViewShell->GetContentWindow()->set_id("outline_win"); } - else if (rsViewURL.equals(FrameworkHelper::msNotesViewURL)) + else if (rsViewURL == FrameworkHelper::msNotesViewURL) { pViewShell.reset( new DrawViewShell( @@ -363,7 +363,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell ( pFrameView)); pViewShell->GetContentWindow()->set_id("notes_win"); } - else if (rsViewURL.equals(FrameworkHelper::msHandoutViewURL)) + else if (rsViewURL == FrameworkHelper::msHandoutViewURL) { pViewShell.reset( new DrawViewShell( @@ -373,7 +373,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell ( pFrameView)); pViewShell->GetContentWindow()->set_id("handout_win"); } - else if (rsViewURL.equals(FrameworkHelper::msPresentationViewURL)) + else if (rsViewURL == FrameworkHelper::msPresentationViewURL) { pViewShell.reset( new PresentationViewShell( @@ -382,7 +382,7 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell ( pFrameView)); pViewShell->GetContentWindow()->set_id("presentation_win"); } - else if (rsViewURL.equals(FrameworkHelper::msSlideSorterURL)) + else if (rsViewURL == FrameworkHelper::msSlideSorterURL) { pViewShell = ::sd::slidesorter::SlideSorterViewShell::Create ( &rFrame, diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.cxx b/sd/source/ui/framework/module/CenterViewFocusModule.cxx index c8543232f538..fa097d700643 100644 --- a/sd/source/ui/framework/module/CenterViewFocusModule.cxx +++ b/sd/source/ui/framework/module/CenterViewFocusModule.cxx @@ -105,11 +105,11 @@ void SAL_CALL CenterViewFocusModule::notifyConfigurationChange ( { if (mbValid) { - if (rEvent.Type.equals(FrameworkHelper::msConfigurationUpdateEndEvent)) + if (rEvent.Type == FrameworkHelper::msConfigurationUpdateEndEvent) { HandleNewView(rEvent.Configuration); } - else if (rEvent.Type.equals(FrameworkHelper::msResourceActivationEvent)) + else if (rEvent.Type == FrameworkHelper::msResourceActivationEvent) { if (rEvent.ResourceId->getResourceURL().match(FrameworkHelper::msViewURLPrefix)) mbNewViewCreated = true; diff --git a/sd/source/ui/framework/module/ResourceManager.cxx b/sd/source/ui/framework/module/ResourceManager.cxx index a0c77e24b83f..6ca871a0d823 100644 --- a/sd/source/ui/framework/module/ResourceManager.cxx +++ b/sd/source/ui/framework/module/ResourceManager.cxx @@ -125,8 +125,8 @@ void SAL_CALL ResourceManager::notifyConfigurationChange ( { // A resource directly bound to the center pane has been // requested. - if (rEvent.ResourceId->getResourceTypePrefix().equals( - FrameworkHelper::msViewURLPrefix)) + if (rEvent.ResourceId->getResourceTypePrefix() == + FrameworkHelper::msViewURLPrefix) { // The requested resource is a view. Show or hide the // resource managed by this ResourceManager accordingly. diff --git a/sd/source/ui/framework/module/ShellStackGuard.cxx b/sd/source/ui/framework/module/ShellStackGuard.cxx index 79171d026bd2..f86d95075016 100644 --- a/sd/source/ui/framework/module/ShellStackGuard.cxx +++ b/sd/source/ui/framework/module/ShellStackGuard.cxx @@ -91,7 +91,7 @@ void SAL_CALL ShellStackGuard::disposing() void SAL_CALL ShellStackGuard::notifyConfigurationChange ( const ConfigurationChangeEvent& rEvent) { - if (rEvent.Type.equals(FrameworkHelper::msConfigurationUpdateStartEvent)) + if (rEvent.Type == FrameworkHelper::msConfigurationUpdateStartEvent) { if (mpUpdateLock.get() == nullptr && IsPrinting()) { diff --git a/sd/source/ui/framework/module/SlideSorterModule.cxx b/sd/source/ui/framework/module/SlideSorterModule.cxx index 6315ec335a14..4ba27c0ac06b 100644 --- a/sd/source/ui/framework/module/SlideSorterModule.cxx +++ b/sd/source/ui/framework/module/SlideSorterModule.cxx @@ -88,7 +88,7 @@ void SlideSorterModule::SaveResourceState() void SAL_CALL SlideSorterModule::notifyConfigurationChange ( const ConfigurationChangeEvent& rEvent) { - if (rEvent.Type.equals(FrameworkHelper::msResourceActivationEvent)) + if (rEvent.Type == FrameworkHelper::msResourceActivationEvent) { if (rEvent.ResourceId->compareTo(mxViewTabBarId) == 0) { @@ -96,11 +96,11 @@ void SAL_CALL SlideSorterModule::notifyConfigurationChange ( // become active. UpdateViewTabBar(Reference<XTabBar>(rEvent.ResourceObject,UNO_QUERY)); } - else if (rEvent.ResourceId->getResourceTypePrefix().equals( - FrameworkHelper::msViewURLPrefix) - && rEvent.ResourceId->isBoundTo( - FrameworkHelper::CreateResourceId(FrameworkHelper::msCenterPaneURL), - AnchorBindingMode_DIRECT)) + else if (rEvent.ResourceId->getResourceTypePrefix() == + FrameworkHelper::msViewURLPrefix + && rEvent.ResourceId->isBoundTo( + FrameworkHelper::CreateResourceId(FrameworkHelper::msCenterPaneURL), + AnchorBindingMode_DIRECT)) { // Update the view tab bar because the view in the center pane // has changed. diff --git a/sd/source/ui/framework/module/ToolPanelModule.cxx b/sd/source/ui/framework/module/ToolPanelModule.cxx index 5915384cfd0a..d2e5e7e09294 100644 --- a/sd/source/ui/framework/module/ToolPanelModule.cxx +++ b/sd/source/ui/framework/module/ToolPanelModule.cxx @@ -79,7 +79,7 @@ void ToolPanelModule::SaveResourceState() void SAL_CALL ToolPanelModule::notifyConfigurationChange ( const ConfigurationChangeEvent& rEvent) { - if (!rEvent.Type.equals(FrameworkHelper::msResourceActivationEvent)) + if (rEvent.Type != FrameworkHelper::msResourceActivationEvent) ResourceManager::notifyConfigurationChange(rEvent); } diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx index e6924862dc99..163ee147e400 100644 --- a/sd/source/ui/framework/tools/FrameworkHelper.cxx +++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx @@ -620,7 +620,7 @@ void FrameworkHelper::HandleModeChangeSlot ( || nSlotId == SID_HANDOUT_MASTER_MODE) eEMode = EditMode::MasterPage; // Ensure we have the expected view shell - if (!(xView.is() && xView->getResourceId()->getResourceURL().equals(sRequestedView))) + if (!(xView.is() && xView->getResourceId()->getResourceURL() == sRequestedView)) { const auto xId = CreateResourceId(sRequestedView, msCenterPaneURL); @@ -901,7 +901,7 @@ void SAL_CALL CallbackCaller::disposing (const lang::EventObject& rEvent) void SAL_CALL CallbackCaller::notifyConfigurationChange ( const ConfigurationChangeEvent& rEvent) { - if (rEvent.Type.equals(msEventType) && maFilter(rEvent)) + if (rEvent.Type == msEventType && maFilter(rEvent)) { maCallback(true); if (mxConfigurationController.is()) diff --git a/sd/source/ui/remotecontrol/ImagePreparer.cxx b/sd/source/ui/remotecontrol/ImagePreparer.cxx index c765ca6a0c9a..ffd019b0c128 100644 --- a/sd/source/ui/remotecontrol/ImagePreparer.cxx +++ b/sd/source/ui/remotecontrol/ImagePreparer.cxx @@ -230,7 +230,7 @@ OString ImagePreparer::prepareNotes( sal_uInt32 aSlideNumber ) uno::Reference<lang::XServiceName> xServiceName ( xIndexAccess->getByIndex(nIndex), UNO_QUERY); if (xServiceName.is() - && xServiceName->getServiceName().equals(sNotesShapeName)) + && xServiceName->getServiceName() == sNotesShapeName) { uno::Reference<text::XTextRange> xText (xServiceName, UNO_QUERY); if (xText.is()) @@ -246,7 +246,7 @@ OString ImagePreparer::prepareNotes( sal_uInt32 aSlideNumber ) if (xShapeDescriptor.is()) { OUString sType (xShapeDescriptor->getShapeType()); - if (sType.equals(sNotesShapeName) || sType.equals(sTextShapeName)) + if (sType == sNotesShapeName || sType == sTextShapeName) { uno::Reference<text::XTextRange> xText ( xIndexAccess->getByIndex(nIndex), UNO_QUERY); diff --git a/sd/source/ui/remotecontrol/Server.cxx b/sd/source/ui/remotecontrol/Server.cxx index 7382ad00a80a..125b8d832108 100644 --- a/sd/source/ui/remotecontrol/Server.cxx +++ b/sd/source/ui/remotecontrol/Server.cxx @@ -146,14 +146,14 @@ void RemoteServer::execute() bool aFound = false; for ( int i = 0; i < aNames.getLength(); i++ ) { - if ( aNames[i].equals( pClient->mName ) ) + if ( aNames[i] == pClient->mName ) { Reference<XNameAccess> xSetItem( xConfig->getByName(aNames[i]), UNO_QUERY ); Any axPin(xSetItem->getByName("PIN")); OUString sPin; axPin >>= sPin; - if ( sPin.equals( pClient->mPin ) ) { + if ( sPin == pClient->mPin ) { SAL_INFO( "sdremote", "client found on validated list -- connecting" ); connectClient( pClient, sPin ); aFound = true; @@ -281,7 +281,7 @@ bool RemoteServer::connectClient( const std::shared_ptr< ClientInfo >& pClient, return false; } - if ( apClient->mPin.equals( aPin ) ) + if ( apClient->mPin == aPin ) { // Save in settings first std::shared_ptr< ConfigurationChanges > aChanges = ConfigurationChanges::create(); @@ -298,7 +298,7 @@ bool RemoteServer::connectClient( const std::shared_ptr< ClientInfo >& pClient, Sequence< OUString > aNames = xConfig->getElementNames(); for ( int i = 0; i < aNames.getLength(); i++ ) { - if ( aNames[i].equals( apClient->mName ) ) + if ( aNames[i] == apClient->mName ) { xConfig->replaceByName( apClient->mName, makeAny( xChild ) ); aSaved = true; diff --git a/sd/source/ui/sidebar/DocumentHelper.cxx b/sd/source/ui/sidebar/DocumentHelper.cxx index d0588b522e69..bb2a3d853e66 100644 --- a/sd/source/ui/sidebar/DocumentHelper.cxx +++ b/sd/source/ui/sidebar/DocumentHelper.cxx @@ -499,7 +499,7 @@ SdPage* DocumentHelper::ProvideMasterPage ( for (sal_uInt16 nIndex=0,nCount=rTargetDocument.GetMasterPageCount(); nIndex<nCount; ++nIndex) { SdPage* pCandidate = static_cast<SdPage*>(rTargetDocument.GetMasterPage(nIndex)); - if (pCandidate && sMasterPageLayoutName.equals(pCandidate->GetLayoutName())) + if (pCandidate && sMasterPageLayoutName == pCandidate->GetLayoutName()) { // The requested master page does already exist in the // target document, return it. diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx index c3e635a3ca87..ef39e00b5fc1 100644 --- a/sd/source/ui/sidebar/LayoutMenu.cxx +++ b/sd/source/ui/sidebar/LayoutMenu.cxx @@ -519,16 +519,16 @@ void LayoutMenu::Fill() {} const snewfoil_value_info* pInfo = nullptr; - if (sCenterPaneViewName.equals(framework::FrameworkHelper::msNotesViewURL)) + if (sCenterPaneViewName == framework::FrameworkHelper::msNotesViewURL) { pInfo = notes; } - else if (sCenterPaneViewName.equals(framework::FrameworkHelper::msHandoutViewURL)) + else if (sCenterPaneViewName == framework::FrameworkHelper::msHandoutViewURL) { pInfo = handout; } - else if (sCenterPaneViewName.equals(framework::FrameworkHelper::msImpressViewURL) - || sCenterPaneViewName.equals(framework::FrameworkHelper::msSlideSorterURL)) + else if (sCenterPaneViewName == framework::FrameworkHelper::msImpressViewURL + || sCenterPaneViewName == framework::FrameworkHelper::msSlideSorterURL) { pInfo = standard; } diff --git a/sd/source/ui/sidebar/MasterPageDescriptor.cxx b/sd/source/ui/sidebar/MasterPageDescriptor.cxx index c366684f4387..4426d1260092 100644 --- a/sd/source/ui/sidebar/MasterPageDescriptor.cxx +++ b/sd/source/ui/sidebar/MasterPageDescriptor.cxx @@ -292,7 +292,7 @@ bool MasterPageDescriptor::URLComparator::operator() ( if (rDescriptor.get() == nullptr) return false; else - return rDescriptor->msURL.equals(msURL); + return rDescriptor->msURL == msURL; } // ===== StyleNameComparator ================================================== @@ -308,7 +308,7 @@ bool MasterPageDescriptor::StyleNameComparator::operator() ( if (rDescriptor.get() == nullptr) return false; else - return rDescriptor->msStyleName.equals(msStyleName); + return rDescriptor->msStyleName == msStyleName; } //===== PageObjectComparator ================================================== @@ -349,11 +349,11 @@ bool MasterPageDescriptor::AllComparator::operator() (const SharedMasterPageDesc mpDescriptor->meOrigin == rDescriptor->meOrigin && ( (!mpDescriptor->msURL.isEmpty() - && mpDescriptor->msURL.equals(rDescriptor->msURL)) + && mpDescriptor->msURL == rDescriptor->msURL) || (!mpDescriptor->msPageName.isEmpty() - && mpDescriptor->msPageName.equals(rDescriptor->msPageName)) + && mpDescriptor->msPageName == rDescriptor->msPageName) || (!mpDescriptor->msStyleName.isEmpty() - && mpDescriptor->msStyleName.equals(rDescriptor->msStyleName)) + && mpDescriptor->msStyleName == rDescriptor->msStyleName) || (mpDescriptor->mpMasterPage!=nullptr && mpDescriptor->mpMasterPage==rDescriptor->mpMasterPage) || (mpDescriptor->mpPageObjectProvider.get()!=nullptr diff --git a/sd/source/ui/slideshow/PaneHider.cxx b/sd/source/ui/slideshow/PaneHider.cxx index 09094687b3d5..03eb26d69b87 100644 --- a/sd/source/ui/slideshow/PaneHider.cxx +++ b/sd/source/ui/slideshow/PaneHider.cxx @@ -65,7 +65,7 @@ PaneHider::PaneHider (const ViewShell& rViewShell, SlideshowImpl* pSlideShow) for (sal_Int32 nIndex=0; nIndex<aResources.getLength(); ++nIndex) { Reference<XResourceId> xPaneId (aResources[nIndex]); - if ( ! xPaneId->getResourceURL().equals(FrameworkHelper::msCenterPaneURL)) + if ( xPaneId->getResourceURL() != FrameworkHelper::msCenterPaneURL ) { mxConfigurationController->requestResourceDeactivation(xPaneId); } diff --git a/sd/source/ui/tools/EventMultiplexer.cxx b/sd/source/ui/tools/EventMultiplexer.cxx index 6496ac33f805..8a7597395b09 100644 --- a/sd/source/ui/tools/EventMultiplexer.cxx +++ b/sd/source/ui/tools/EventMultiplexer.cxx @@ -531,7 +531,7 @@ void SAL_CALL EventMultiplexer::Implementation::notifyConfigurationChange ( } // Add selection change listener at slide sorter. - if (rEvent.ResourceId->getResourceURL().equals(FrameworkHelper::msSlideSorterURL)) + if (rEvent.ResourceId->getResourceURL() == FrameworkHelper::msSlideSorterURL) { slidesorter::SlideSorterViewShell* pViewShell = dynamic_cast<slidesorter::SlideSorterViewShell*>( @@ -557,7 +557,7 @@ void SAL_CALL EventMultiplexer::Implementation::notifyConfigurationChange ( // Remove selection change listener from slide sorter. Add // selection change listener at slide sorter. - if (rEvent.ResourceId->getResourceURL().equals(FrameworkHelper::msSlideSorterURL)) + if (rEvent.ResourceId->getResourceURL() == FrameworkHelper::msSlideSorterURL) { slidesorter::SlideSorterViewShell* pViewShell = dynamic_cast<slidesorter::SlideSorterViewShell*>( diff --git a/sd/source/ui/view/ToolBarManager.cxx b/sd/source/ui/view/ToolBarManager.cxx index f7143d945d9d..0d9e7bd5406d 100644 --- a/sd/source/ui/view/ToolBarManager.cxx +++ b/sd/source/ui/view/ToolBarManager.cxx @@ -910,7 +910,7 @@ bool ToolBarManager::Implementation::CheckPlugInMode (const OUString& rsName) co } while (false); - if (rsName.equals(msViewerToolBar)) + if (rsName == msViewerToolBar) bValid = bIsPlugInMode; else bValid = ! bIsPlugInMode; diff --git a/sd/source/ui/view/ViewTabBar.cxx b/sd/source/ui/view/ViewTabBar.cxx index 8de2540aa347..98b059e90581 100644 --- a/sd/source/ui/view/ViewTabBar.cxx +++ b/sd/source/ui/view/ViewTabBar.cxx @@ -235,7 +235,7 @@ vcl::Window* ViewTabBar::GetAnchorWindow( void SAL_CALL ViewTabBar::notifyConfigurationChange ( const ConfigurationChangeEvent& rEvent) { - if (rEvent.Type.equals(FrameworkHelper::msResourceActivationEvent) + if (rEvent.Type == FrameworkHelper::msResourceActivationEvent && rEvent.ResourceId->getResourceURL().match(FrameworkHelper::msViewURLPrefix) && rEvent.ResourceId->isBoundTo(mxViewTabBarId->getAnchor(), AnchorBindingMode_DIRECT)) { diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index 056f25ca1277..23e21891e2d2 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -843,7 +843,7 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) SdPage* pCurrentPage = pPV ? dynamic_cast<SdPage*>(pPV->GetPage()) : nullptr; if (pCurrentPage && pNewPage == pCurrentPage - && maTabControl->GetPageText(maTabControl->GetPageId(nSelectedPage)).equals(pNewPage->GetName())) + && maTabControl->GetPageText(maTabControl->GetPageId(nSelectedPage)) == pNewPage->GetName()) { // this slide is already visible return true; diff --git a/sd/source/ui/view/drviewsb.cxx b/sd/source/ui/view/drviewsb.cxx index 6381526a08f3..c22a012ae94e 100644 --- a/sd/source/ui/view/drviewsb.cxx +++ b/sd/source/ui/view/drviewsb.cxx @@ -171,7 +171,7 @@ void DrawViewShell::ModifyLayer ( for( nPos = 0; nPos < nPageCount; nPos++ ) { sal_uInt16 nId = GetLayerTabControl()->GetPageId( nPos ); - if (GetLayerTabControl()->GetPageText(nId).equals(pLayer->GetName())) + if (GetLayerTabControl()->GetPageText(nId) == pLayer->GetName()) { nCurPage = nId; break; diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx index 2844da7cead8..852208426834 100644 --- a/sd/source/ui/view/sdview2.cxx +++ b/sd/source/ui/view/sdview2.cxx @@ -737,7 +737,7 @@ sal_Int8 View::ExecuteDrop( const ExecuteDropEvent& rEvt, { const OUString aDocName( aBookmark.copy( 0, nIndex ) ); - if (mpDocSh->GetMedium()->GetName() == aDocName || aDocName.equals(mpDocSh->GetName())) + if (mpDocSh->GetMedium()->GetName() == aDocName || aDocName == mpDocSh->GetName()) { // internal jump, only use the part after and including '#' eClickAction = presentation::ClickAction_BOOKMARK; @@ -896,7 +896,7 @@ bool View::GetExchangeList (std::vector<OUString> &rExchangeList, } } - bListIdentical = pIter->equals(aNewName); + bListIdentical = *pIter == aNewName; rExchangeList.push_back(aNewName); } |