diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-12-23 22:35:21 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-12-25 18:10:08 +0100 |
commit | 20f0b58a24dabf17d5d1dcfc06eaa3ccafcd7268 (patch) | |
tree | db46cd8bc0ef16b3e4839ed48d7dc6958ba1973a /src/webchannel | |
parent | 3ddb2344af8149b70861234eb36126b966e37c61 (diff) |
tst_webchannel: port from raw and shared pointers to unique_ptr
Avoids the need for qDeleteAll() in the case of raw pointers. Avoids
overhead for non-shared objects in the shared pointer case.
Since unique_ptr is a move-only type, use a container (std::vector)
and loop constuct (ranged for loop) that can handle it.
This removes the only use of QSharedPointer in this module.
Change-Id: Ic3fe90403eb3f28f1e2e370a3648bc522880a10d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Arno Rehn <a.rehn@menlosystems.com>
Diffstat (limited to 'src/webchannel')
0 files changed, 0 insertions, 0 deletions