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

Akseli Lahtinen <akse...@akselmo.dev> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi
                   |t/9b6a8aaf7968c4ac82613f114 |t/29e38fdfecaeb77d77f0c71aa
                   |ee6c1223a2d03b8             |66d7cc4c3f54b2c

--- Comment #21 from Akseli Lahtinen <akse...@akselmo.dev> ---
Git commit 29e38fdfecaeb77d77f0c71aa66d7cc4c3f54b2c by Akseli Lahtinen.
Committed on 10/07/2024 at 08:33.
Pushed by akselmo into branch 'master'.

kastatsfavoritesmodel.cpp: prefer .value() over operator[]

- In `removeResult`, use `resource` directly so we are not comparing to a
possible `nullptr` which can cause crashing
- Prefer `.value` over `operator[]` to avoid leaving behind `nullptr` entries
when reading items

M  +7    -6    applets/kicker/plugin/kastatsfavoritesmodel.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/29e38fdfecaeb77d77f0c71aa66d7cc4c3f54b2c

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

Reply via email to