qt6-bb10/src
Marc Mutz e6d4967f0b QArrayDataPointer: don't overload qSwap(), provide ADL-swap()
qSwap() is our wrapper around

   using std::swap;
   swap(lhs, rhs);

it needn't and shouldn't be overloaded.

ADL swap() should be, though, so qSwap(), std::ranges::swap() and all
the other adl_swap()s out there all find the optimized version.

Qt 5.15 has it correct, Qt 6 wrong. Fix it.

Can't pick to 6.2 because, while backwards-source-compatible, because
the generic qSwap() template provides the name for both qualified and
unqualified calls, it's not forwards-source-compatible: A new user of
ADL swap

   // compile error w/o `using std::swap`, pessimization otherwise:
   swap(dp1, dp2);

would break or performance-regress when going back to an older
version.

Pick-to: 6.3
Change-Id: I725949a4aa9ae438a182b4b7552ff2dced767e2f
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-01-21 13:10:19 +01:00
..
3rdparty SQLite: Update SQLite to v3.37.0 2022-01-06 13:55:53 +00:00
android Recognize system apps also when apk has parent directory 2021-12-08 19:22:36 +02:00
concurrent QtConcurrent: use variable templates for compile-time checks 2022-01-20 22:56:11 +01:00
corelib QArrayDataPointer: don't overload qSwap(), provide ADL-swap() 2022-01-21 13:10:19 +01:00
dbus Prevent repeated instantiations of some qRegisterNormalizedMetaType<>s [1/N] (QtGui) 2022-01-21 11:22:35 +00:00
entrypoint QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
gui Prevent repeated instantiations of some qRegisterNormalizedMetaType<>s [1/N] (QtGui) 2022-01-21 11:22:35 +00:00
network QTlsBackend/QSslSocket - check the arguments we pass to QObject::connect 2022-01-20 19:01:27 +01:00
opengl Doc: Use \inmodule for all classes and headers 2022-01-17 17:23:50 +00:00
openglwidgets Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platformsupport evdevkeyboard: Try opening as read-write first 2021-12-08 13:45:34 +01:00
plugins Windows XP style: Fix coding style violations 2022-01-20 22:57:45 +01:00
printsupport Remove unused .qrc files 2022-01-17 23:17:01 +01:00
sql Adapt SQL drivers to Qt 6 change of QVariant::isNull 2022-01-12 17:41:07 +01:00
testlib Make counts of various types of test result add up correctly 2022-01-13 19:47:22 +01:00
tools qtpaths: Expose new PublicShareLocation, TemplatesLocation 2022-01-14 17:42:49 +01:00
widgets QTableWidgetSelectionRange: make relational operators noexcept 2022-01-21 07:03:07 +01:00
xml Doc: Use find_package(Qt6 REQUIRED COMPONENTS ...) idiom 2021-12-09 22:20:04 +01:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00