diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-03 15:59:27 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-03 15:59:27 +0300 |
commit | 2633683b52054d15006aea1314f62f73a8505b42 (patch) | |
tree | a97b2916170b53f04fc9a898f4eedb527f14f84e /source/blender/freestyle/intern/scene_graph | |
parent | 93da09d717ff4502975c506c574faf0c07f010b4 (diff) |
Clang-tidy: enable readability-container-size-empty warning
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8197
Diffstat (limited to 'source/blender/freestyle/intern/scene_graph')
-rw-r--r-- | source/blender/freestyle/intern/scene_graph/NodeShape.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/scene_graph/NodeShape.cpp b/source/blender/freestyle/intern/scene_graph/NodeShape.cpp index e55b2fb625f..cf7a609b347 100644 --- a/source/blender/freestyle/intern/scene_graph/NodeShape.cpp +++ b/source/blender/freestyle/intern/scene_graph/NodeShape.cpp @@ -27,7 +27,7 @@ NodeShape::~NodeShape() { vector<Rep *>::iterator rep; - if (0 != _Shapes.size()) { + if (!_Shapes.empty()) { for (rep = _Shapes.begin(); rep != _Shapes.end(); ++rep) { int refCount = (*rep)->destroy(); if (0 == refCount) { |