From 03f6f176b1ef789ae8320da13a37d3590918694f Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 7 Feb 2025 13:37:13 -0800 Subject: [PATCH] QSet: Fix Qt Creator build Amends commit 68cac07d500851209eab93dec771c45ac4864c8a. One QSet() wrapping was missing. Task-number: QTBUG-132500 Change-Id: Iee61f1d6613b0220846afffda3a8212053e2183c Reviewed-by: Allan Sandfeld Jensen --- src/corelib/tools/qset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/tools/qset.h b/src/corelib/tools/qset.h index d8d6e39dfbd..4cb0bcdd975 100644 --- a/src/corelib/tools/qset.h +++ b/src/corelib/tools/qset.h @@ -207,7 +207,7 @@ public: friend QSet operator+(const QSet &lhs, const QSet &rhs) { return QSet(lhs) += rhs; } friend QSet operator+(QSet &&lhs, const QSet &rhs) { lhs += rhs; return std::move(lhs); } - friend QSet operator+(const QSet &lhs, QSet &&rhs) { return lhs += std::move(rhs); } + friend QSet operator+(const QSet &lhs, QSet &&rhs) { return QSet(lhs) += std::move(rhs); } friend QSet operator+(QSet &&lhs, QSet &&rhs) { return std::move(lhs) += std::move(rhs); } friend QSet operator-(const QSet &lhs, const QSet &rhs) { return QSet(lhs) -= rhs; }