diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-10 16:23:22 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-10 16:24:03 +0300 |
commit | 0852d13bbdd4b0394f4ff9d051959c7b731977b7 (patch) | |
tree | 74ed0db7522aca2860d400842def02ebc17fb903 /source/blender/depsgraph/intern/depsgraph_build.cc | |
parent | 4fefe3ac3b8d8cd70d1f54e1be21f6455ce0d744 (diff) |
Depsgraph: use native Set data structure
Differential Revision: https://developer.blender.org/D7982
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_build.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_build.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc index 9e50bd87d6c..cdaf68cb826 100644 --- a/source/blender/depsgraph/intern/depsgraph_build.cc +++ b/source/blender/depsgraph/intern/depsgraph_build.cc @@ -357,17 +357,17 @@ class DepsgraphFromIDsFilter { DepsgraphFromIDsFilter(ID **ids, const int num_ids) { for (int i = 0; i < num_ids; ++i) { - ids_.insert(ids[i]); + ids_.add(ids[i]); } } bool contains(ID *id) { - return ids_.find(id) != ids_.end(); + return ids_.contains(id); } protected: - set<ID *> ids_; + Set<ID *> ids_; }; class DepsgraphFromIDsNodeBuilder : public DepsgraphNodeBuilder { |