diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-05 07:46:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-05 07:46:54 +0300 |
commit | 1be265afc00057651ee03ccd5137d4a350641787 (patch) | |
tree | a92060196c7888620cd06ed46bf785921e5262b3 /source/blender/depsgraph | |
parent | c13b2a2504393371e32a4fb4c01cfad8d7cc929e (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_map.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_map.cc b/source/blender/depsgraph/intern/builder/deg_builder_map.cc index bf29156c3fe..2d9719b3ad4 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_map.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_map.cc @@ -37,20 +37,23 @@ namespace DEG { -BuilderMap::BuilderMap() { +BuilderMap::BuilderMap() +{ set = BLI_gset_ptr_new("deg builder gset"); } - -BuilderMap::~BuilderMap() { +BuilderMap::~BuilderMap() +{ BLI_gset_free(set, NULL); } -bool BuilderMap::checkIsBuilt(ID *id) { +bool BuilderMap::checkIsBuilt(ID *id) +{ return BLI_gset_haskey(set, id); } -void BuilderMap::tagBuild(ID *id) { +void BuilderMap::tagBuild(ID *id) +{ BLI_gset_insert(set, id); } |