From 9d70118c661cb370c9e8b68ad24b804fc7d69a8f Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 20 Sep 2023 21:27:08 +0200 Subject: [PATCH] qswap.h: include what you need The qSwap() function needs std::swap, so include manually instead of relying on transitive includes. Pick-to: 6.6 6.5 Change-Id: If1331e1eabb55542eac7477522a8e906efb5379f Reviewed-by: Giuseppe D'Angelo --- src/corelib/global/qswap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/global/qswap.h b/src/corelib/global/qswap.h index e0f4bd04a6..7feff5eb08 100644 --- a/src/corelib/global/qswap.h +++ b/src/corelib/global/qswap.h @@ -7,6 +7,8 @@ #include #include +#include + #if 0 #pragma qt_class(QtSwap) #pragma qt_sync_stop_processing