summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/artifactlist.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-09-27 16:23:53 +0200
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-09-30 15:13:27 +0200
commitff78da7ea63625f9d6d4607e94579fec01be8559 (patch)
treeb6c3fcb21e4c8b53c61f2b8a72e4519e765e64d3 /src/lib/buildgraph/artifactlist.h
parentfdd6cb3195c7845a2b8f32445ab3e38bb951ed60 (diff)
downloadqbs-ff78da7ea63625f9d6d4607e94579fec01be8559.tar.gz
Do some build graph sanity checks.
Check some invariants after resolving, restoring and change tracking. Change-Id: I84e92d6f16a96d4a54c928e8cebc06efbf8fde2c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/artifactlist.h')
-rw-r--r--src/lib/buildgraph/artifactlist.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/buildgraph/artifactlist.h b/src/lib/buildgraph/artifactlist.h
index e4cc00ad9..ffbe72ba6 100644
--- a/src/lib/buildgraph/artifactlist.h
+++ b/src/lib/buildgraph/artifactlist.h
@@ -98,6 +98,10 @@ public:
// no-op
}
+ bool operator==(const ArtifactList &other) const { return m_data == other.m_data; }
+ bool operator!=(const ArtifactList &other) const { return !(*this == other); }
+
+
private:
std::set<Artifact *> m_data;
};