Tag ComicDB::operator== as const

This commit is contained in:
Luis Ángel San Martín 2021-10-03 12:35:23 +02:00
parent a7e3c41f34
commit e7f3d29477

View File

@ -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 &);