aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/artifact.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2016-05-18 16:44:29 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2016-05-19 13:14:07 +0000
commitda932c1171fe90e41f8a14ec04c3bef171c30eef (patch)
treebdeac4ef3236de7bb1c81d37e48b789ea49f2ff2 /src/lib/corelib/buildgraph/artifact.h
parentb44b0659da151f2cc78c00b75ce342c03d53ce41 (diff)
Avoid copies of node containers
We've used ArtifactSet::fromNodeSet to iterate over all artifacts in a node container. This creates a container copy. Use a filtering iterator instead. Change-Id: I368d3e4b1a259634c8cd5dbd53f372577b3ed14b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/lib/corelib/buildgraph/artifact.h')
-rw-r--r--src/lib/corelib/buildgraph/artifact.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/artifact.h b/src/lib/corelib/buildgraph/artifact.h
index 50e840958..9789fc159 100644
--- a/src/lib/corelib/buildgraph/artifact.h
+++ b/src/lib/corelib/buildgraph/artifact.h
@@ -87,8 +87,8 @@ public:
bool oldDataPossiblyPresent : 1;
void initialize();
- ArtifactSet parentArtifacts() const;
- ArtifactSet childArtifacts() const;
+ const TypeFilter<Artifact> parentArtifacts() const;
+ const TypeFilter<Artifact> childArtifacts() const;
void onChildDisconnected(BuildGraphNode *child);
private: