summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-10-06 07:07:55 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-10-06 10:14:19 +0200
commit6f96f90b968f342f73e8fb5e79420047a0ba296c (patch)
tree02c1208a0d5ae935d5bdf8f98a61229b83004655 /tests/auto
parent6f3fc9da651a2de2e345e9719ce83a639d40464d (diff)
downloadqtwayland-6f96f90b968f342f73e8fb5e79420047a0ba296c.tar.gz
Replace qExchange with std::exchange
None of these users require C++20 constexpr or C++23 noexcept, the only remaining difference between std::exchange and qExchange. Task-number: QTBUG-99313 Change-Id: Ic5a0bd36d715af2cbc5f9936fdff665ee6eeea4e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/client/shared/coreprotocol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/client/shared/coreprotocol.cpp b/tests/auto/client/shared/coreprotocol.cpp
index 88b8cb59..559ddbd7 100644
--- a/tests/auto/client/shared/coreprotocol.cpp
+++ b/tests/auto/client/shared/coreprotocol.cpp
@@ -109,7 +109,7 @@ void Surface::surface_commit(Resource *resource)
}
}
- for (wl_resource *frameCallback : qExchange(m_frameCallbackList, {})) {
+ for (wl_resource *frameCallback : std::exchange(m_frameCallbackList, {})) {
auto time = m_wlCompositor->m_compositor->currentTimeMilliseconds();
wl_callback_send_done(frameCallback, time);
wl_resource_destroy(frameCallback);