Commit 1fde9178 authored by Jüri Valdmann's avatar Jüri Valdmann Committed by Kai Koehne
Browse files

Fix QWebEngineUrlScheme::operator== constness


Task-number: QTBUG-70247
Change-Id: Ic0898966d9a88a0bbcdf749c6ea7e80e054d68a3
Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
Showing with 4 additions and 4 deletions
......@@ -237,7 +237,7 @@ QWebEngineUrlScheme::~QWebEngineUrlScheme() = default;
/*!
Returns \c true if this and \a that object are equal.
*/
bool QWebEngineUrlScheme::operator==(const QWebEngineUrlScheme &that)
bool QWebEngineUrlScheme::operator==(const QWebEngineUrlScheme &that) const
{
return (d == that.d)
|| (d->name == that.d->name
......@@ -247,7 +247,7 @@ bool QWebEngineUrlScheme::operator==(const QWebEngineUrlScheme &that)
}
/*!
\fn bool QWebEngineUrlScheme::operator!=(const QWebEngineUrlScheme &that)
\fn bool QWebEngineUrlScheme::operator!=(const QWebEngineUrlScheme &that) const
Returns \c true if this and \a that object are not equal.
*/
......
......@@ -84,8 +84,8 @@ public:
~QWebEngineUrlScheme();
bool operator==(const QWebEngineUrlScheme &that);
bool operator!=(const QWebEngineUrlScheme &that) { return !(*this == that); }
bool operator==(const QWebEngineUrlScheme &that) const;
bool operator!=(const QWebEngineUrlScheme &that) const { return !(*this == that); }
QByteArray name() const;
void setName(const QByteArray &newValue);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment