qswap.h: include what you need

The qSwap() function needs std::swap, so include <utility> manually
instead of relying on transitive includes.

Pick-to: 6.6 6.5
Change-Id: If1331e1eabb55542eac7477522a8e906efb5379f
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Marc Mutz 2023-09-20 21:27:08 +02:00
parent 0bd3e28b17
commit 9d70118c66

View File

@ -7,6 +7,8 @@
#include <QtCore/qtconfigmacros.h>
#include <QtCore/qcompilerdetection.h>
#include <utility>
#if 0
#pragma qt_class(QtSwap)
#pragma qt_sync_stop_processing