svx/source/svdraw/sdrpaintwindow.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 3e5452875b28d35e52efb3860c71eeac7cbfa960
Author:     Chris <[email protected]>
AuthorDate: Sun Mar 8 17:06:08 2026 -0500
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Tue Mar 10 14:22:13 2026 +0100

    tdf#158237 svx: use C++20 contains() instead of find() and end()
    
    Change-Id: If68f815dda7803a6cbd90f37e854dbe4666a6e66
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201232
    Reviewed-by: Simon Chenery <[email protected]>
    Reviewed-by: Ilmari Lauhakangas <[email protected]>
    Tested-by: Jenkins

diff --git a/svx/source/svdraw/sdrpaintwindow.cxx 
b/svx/source/svdraw/sdrpaintwindow.cxx
index 453ee732cd9e..6989822cef82 100644
--- a/svx/source/svdraw/sdrpaintwindow.cxx
+++ b/svx/source/svdraw/sdrpaintwindow.cxx
@@ -63,7 +63,7 @@ CandidateMgr::~CandidateMgr()
 {
     for (VclPtr<vcl::Window>& pCandidate : m_aCandidates)
     {
-        if (m_aDeletedCandidates.find(pCandidate) != 
m_aDeletedCandidates.end())
+        if (m_aDeletedCandidates.contains(pCandidate))
             continue;
         pCandidate->RemoveEventListener(LINK(this, CandidateMgr, 
WindowEventListener));
     }
@@ -101,14 +101,14 @@ void CandidateMgr::PaintTransparentChildren(vcl::Window 
const & rWindow, tools::
     for (const auto& rpCandidate : m_aCandidates)
     {
         pCandidate = rpCandidate.get();
-        if (m_aDeletedCandidates.find(pCandidate) != 
m_aDeletedCandidates.end())
+        if (m_aDeletedCandidates.contains(pCandidate))
             continue;
         //rhbz#1007697 this can cause the window itself to be
         //deleted. So we are listening to see if that happens
         //and if so, then skip the update
         
pCandidate->Invalidate(InvalidateFlags::NoTransparent|InvalidateFlags::Children);
         // important: actually paint the child here!
-        if (m_aDeletedCandidates.find(pCandidate) != 
m_aDeletedCandidates.end())
+        if (m_aDeletedCandidates.contains(pCandidate))
             continue;
         pCandidate->PaintImmediately();
     }

Reply via email to