https://bugs.kde.org/show_bug.cgi?id=509673

Nicolas Fella <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-activities/-/comm |ma/plasma-activities/-/comm
                   |it/bfb8ac19f1d53e40a114e4f1 |it/60229e33f8b1a69256226e2e
                   |2d9f3537261e59e3            |b8dbe315aaa35cd9

--- Comment #8 from Nicolas Fella <[email protected]> ---
Git commit 60229e33f8b1a69256226e2eb8dbe315aaa35cd9 by Nicolas Fella, on behalf
of Waqar Ahmed.
Committed on 23/09/2025 at 09:46.
Pushed by nicolasfella into branch 'Plasma/6.5'.

Fix broken QFlatSet insertion

- Use the iterator returned from insert() instead of reusing the
existing iterator because it might be invalidated
- dont cache begin(), end(). They make it very easy to write wrong code
because begin()/end() might be different post insertion.
(cherry picked from commit bfb8ac19f1d53e40a114e4f12d9f3537261e59e3)

M  +5    -0    autotests/core/CMakeLists.txt
A  +54   -0    autotests/core/QFlatSetTest.cpp  *
M  +6    -8    src/utils/qflatset.h

The files marked with a * at the end have a non valid license. Please read:
https://community.kde.org/Policies/Licensing_Policy and use the headers which
are listed at that page.


https://invent.kde.org/plasma/plasma-activities/-/commit/60229e33f8b1a69256226e2eb8dbe315aaa35cd9

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to