diff options
| author | Ivan Solovev <ivan.solovev@qt.io> | 2024-07-04 09:42:12 +0200 |
|---|---|---|
| committer | Ivan Solovev <ivan.solovev@qt.io> | 2024-07-15 21:47:40 +0200 |
| commit | ba5199f362b2362bb9b9d8e05aad9ef0129c8e22 (patch) | |
| tree | 0817623ecc07941e78324065979f3a091e33e5c8 /src/core/api/qwebenginepermission.cpp | |
| parent | 944a92d9da346f5a4059d928678412e4c8e066ff (diff) | |
QWebEnginePermission: fix the name of comparison helper
Do not use comparesEqual() as a name of a 1-arg member function, as
it is used in the C++20 comparison framework and should be a 2-arg
hidden friend.
Rename the exported member function to equals(), thus leaving the
possibility to use the comparison helper macros later, if needed.
Amends 00d7de830a43a84a431511a55525f04c21b8ba49.
Found in Qt 6.8 API review.
Pick-to: 6.8
Change-Id: I0ed9bf9ee08418da2f489ed328aecee412486fd0
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/api/qwebenginepermission.cpp')
| -rw-r--r-- | src/core/api/qwebenginepermission.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/api/qwebenginepermission.cpp b/src/core/api/qwebenginepermission.cpp index a6860b5dd..9cef4bf96 100644 --- a/src/core/api/qwebenginepermission.cpp +++ b/src/core/api/qwebenginepermission.cpp @@ -104,7 +104,7 @@ QWebEnginePermission &QWebEnginePermission::operator=(const QWebEnginePermission return *this; } -bool QWebEnginePermission::comparesEqual(const QWebEnginePermission &other) const +bool QWebEnginePermission::equals(const QWebEnginePermission &other) const { if (this == &other) return true; |
