From 3667e796ce67a87f827914f5ba4237dbd7fff364 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 19 Mar 2021 03:46:40 +0200 Subject: [PATCH] inline QJsonDocument::operator!=() Signed-off-by: Ivailo Monev --- src/core/tools/qjsondocument.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/tools/qjsondocument.h b/src/core/tools/qjsondocument.h index dbc648056..6af59b487 100644 --- a/src/core/tools/qjsondocument.h +++ b/src/core/tools/qjsondocument.h @@ -35,7 +35,7 @@ public: ~QJsonDocument(); QJsonDocument(const QJsonDocument &other); - QJsonDocument &operator =(const QJsonDocument &other); + QJsonDocument &operator=(const QJsonDocument &other); static QJsonDocument fromVariant(const QVariant &variant); QVariant toVariant() const; @@ -47,8 +47,8 @@ public: QString errorString() const; bool operator==(const QJsonDocument &other) const; - bool operator!=(const QJsonDocument &other) const { - return !(*this == other); + inline bool operator!=(const QJsonDocument &other) const { + return !operator==(other); } private: