aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljslogger.cpp
diff options
context:
space:
mode:
authorTarja Sundqvist <[email protected]>2025-06-03 13:43:35 +0300
committerTarja Sundqvist <[email protected]>2025-06-03 13:43:35 +0300
commit0f0972d542d9869c2dcfaf9c963d42ff32766460 (patch)
treef283360ffbf0453e04a321e01f0c3df1c07df3e3 /src/qmlcompiler/qqmljslogger.cpp
parent07e23b0f4983631524716f034c0268fd11d037f9 (diff)
parentff0a47c8f267e905113b82c53af2742027f0eca6 (diff)
Merge tag 'v6.5.6-lts-lgpl' into 6.56.5
Qt 6.5.6-lts-lgpl release
Diffstat (limited to 'src/qmlcompiler/qqmljslogger.cpp')
-rw-r--r--src/qmlcompiler/qqmljslogger.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljslogger.cpp b/src/qmlcompiler/qqmljslogger.cpp
index d2f3c60a03..f66d6e6a93 100644
--- a/src/qmlcompiler/qqmljslogger.cpp
+++ b/src/qmlcompiler/qqmljslogger.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <qglobal.h>
@@ -185,6 +185,18 @@ const QList<QQmlJSLogger::Category> &QQmlJSLogger::defaultCategories()
return cats;
}
+bool QQmlJSFixSuggestion::operator==(const QQmlJSFixSuggestion &other) const
+{
+ return m_location == other.m_location && m_fixDescription == other.m_fixDescription
+ && m_replacement == other.m_replacement && m_filename == other.m_filename
+ && m_hint == other.m_hint && m_autoApplicable == other.m_autoApplicable;
+}
+
+bool QQmlJSFixSuggestion::operator!=(const QQmlJSFixSuggestion &other) const
+{
+ return !(*this == other);
+}
+
const QList<QQmlJSLogger::Category> QQmlJSLogger::categories() const
{
return m_categories.values();