QMakeProjectManager: Use more common operator==() implementation

Change-Id: I623b49b92913e2f813554b664b3c79683c3a35cf
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2023-10-06 13:15:39 +02:00
parent 436b215bce
commit db0091e6a3

View File

@@ -12,8 +12,6 @@
#include <utils/commandline.h> #include <utils/commandline.h>
#include <utils/guard.h> #include <utils/guard.h>
#include <memory>
#include <QDebug> #include <QDebug>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
@@ -50,10 +48,10 @@ public:
friend bool operator==(const QMakeStepConfig &a, const QMakeStepConfig &b) friend bool operator==(const QMakeStepConfig &a, const QMakeStepConfig &b)
{ {
return std::tie(a.osType, a.linkQmlDebuggingQQ2) return a.osType == b.osType
== std::tie(b.osType, b.linkQmlDebuggingQQ2) && a.linkQmlDebuggingQQ2 == b.linkQmlDebuggingQQ2
&& std::tie(a.useQtQuickCompiler, a.separateDebugInfo) && a.useQtQuickCompiler == b.useQtQuickCompiler
== std::tie(b.useQtQuickCompiler, b.separateDebugInfo); && a.separateDebugInfo == b.separateDebugInfo;
} }
friend bool operator!=(const QMakeStepConfig &a, const QMakeStepConfig &b) { return !(a == b); } friend bool operator!=(const QMakeStepConfig &a, const QMakeStepConfig &b) { return !(a == b); }