diff options
Diffstat (limited to 'src/qmlcompiler/qqmljslogger.cpp')
-rw-r--r-- | src/qmlcompiler/qqmljslogger.cpp | 14 |
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(); |