From 9d6e4d98c0cae77a99a158a4cb3dff9d6f6313fe Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Thu, 14 Jul 2011 16:29:05 +1000 Subject: [PATCH] Add isEmpty() method Change-Id: Ia0eadcd20b2f14433a7e3a89d97d7a21ec353aa5 Reviewed-on: http://codereview.qt.nokia.com/1628 Reviewed-by: Andrew den Exter Reviewed-by: Qt Sanity Bot --- src/declarative/util/qdeclarativechangeset_p.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/declarative/util/qdeclarativechangeset_p.h b/src/declarative/util/qdeclarativechangeset_p.h index 3644517..ec34293 100644 --- a/src/declarative/util/qdeclarativechangeset_p.h +++ b/src/declarative/util/qdeclarativechangeset_p.h @@ -138,6 +138,10 @@ public: void append(const QVector &moves) { m_moves += moves; } void append(const QVector &changes) { m_changes += changes; } + bool isEmpty() const { + return m_removes.empty() && m_inserts.empty() && m_moves.empty() && m_changes.empty(); + } + void clear() { m_removes.clear(); -- 2.7.4