Annotation: isEmpty const

Change-Id: I95f1c275c7190f27e0ac2c1a57eb791c9353d4c8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Michael Winkelmann
2021-03-09 12:06:02 +01:00
parent 675a72e296
commit 98ab3af2a8
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ public:
static bool sameContent(const Comment &a, const Comment &b);
bool operator==(const Comment &comment) const; //everything is similar.
bool isEmpty();
bool isEmpty() const;
QString toQString() const;

View File

@@ -133,7 +133,7 @@ bool Comment::operator==(const Comment &comment) const
return (sameContent(comment) && (m_timestamp == comment.timestamp()));
}
bool Comment::isEmpty()
bool Comment::isEmpty() const
{
return sameContent(Comment());
}