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

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-nm/-/commit/00390 |ma/plasma-nm/-/commit/0ecb8
                   |c53a12394233ab6b79f94a2408f |a41c4bc37d128625b395a6ce470
                   |e5c8c85a                    |9df79a71

--- Comment #6 from Nate Graham <[email protected]> ---
Git commit 0ecb8a41c4bc37d128625b395a6ce4709df79a71 by Nate Graham.
Committed on 04/06/2026 at 15:36.
Pushed by ngraham into branch 'Plasma/6.6'.

Avoid use of references across a co_await

It's common practice to pass a reference to a string into a method, even
though copying strings in Qt is extremely fast.

This is only fine for the first invocation, after a co_await it ends up
being a dangling reference. This would crash on the second iteration of
the loop.


(cherry picked from commit ca844683ae902fd90614adf888032a6047955884)

Co-authored-by: David Edmundson <[email protected]>

M  +4    -1    libs/handler.cpp

https://invent.kde.org/plasma/plasma-nm/-/commit/0ecb8a41c4bc37d128625b395a6ce4709df79a71

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

Reply via email to