From e7f3d294779f69da9c18c90eeac2c4f2f3652a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 3 Oct 2021 12:35:23 +0200 Subject: [PATCH] Tag ComicDB::operator== as const --- common/comic_db.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/comic_db.h b/common/comic_db.h index 926a2193..30b893f3 100644 --- a/common/comic_db.h +++ b/common/comic_db.h @@ -253,7 +253,7 @@ public: Q_PROPERTY(ComicInfo info MEMBER info) ComicDB &operator=(const ComicDB &other); - bool operator==(const ComicDB &other) { return id == other.id; } + bool operator==(const ComicDB &other) const { return id == other.id; } friend QDataStream &operator<<(QDataStream &, const ComicDB &); friend QDataStream &operator>>(QDataStream &, ComicDB &);