forked from qt-creator/qt-creator
Annotation: isEmpty const
Change-Id: I95f1c275c7190f27e0ac2c1a57eb791c9353d4c8 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -94,7 +94,7 @@ public:
|
|||||||
static bool sameContent(const Comment &a, const Comment &b);
|
static bool sameContent(const Comment &a, const Comment &b);
|
||||||
bool operator==(const Comment &comment) const; //everything is similar.
|
bool operator==(const Comment &comment) const; //everything is similar.
|
||||||
|
|
||||||
bool isEmpty();
|
bool isEmpty() const;
|
||||||
|
|
||||||
QString toQString() const;
|
QString toQString() const;
|
||||||
|
|
||||||
|
@@ -133,7 +133,7 @@ bool Comment::operator==(const Comment &comment) const
|
|||||||
return (sameContent(comment) && (m_timestamp == comment.timestamp()));
|
return (sameContent(comment) && (m_timestamp == comment.timestamp()));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Comment::isEmpty()
|
bool Comment::isEmpty() const
|
||||||
{
|
{
|
||||||
return sameContent(Comment());
|
return sameContent(Comment());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user