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/io/common/intern | |
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/io/common/intern')
-rw-r--r-- | source/blender/io/common/intern/abstract_hierarchy_iterator.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/io/common/intern/abstract_hierarchy_iterator.cc b/source/blender/io/common/intern/abstract_hierarchy_iterator.cc index 9a456bfaf69..dce6b8e178b 100644 --- a/source/blender/io/common/intern/abstract_hierarchy_iterator.cc +++ b/source/blender/io/common/intern/abstract_hierarchy_iterator.cc @@ -219,18 +219,18 @@ void AbstractHierarchyIterator::debug_print_export_graph(const ExportGraph &grap printf(" - %s%s%s\n", child_ctx->object->id.name + 2, child_ctx->weak_export ? " (weak)" : "", - child_ctx->original_export_path.size() ? - (std::string("ref ") + child_ctx->original_export_path).c_str() : - ""); + child_ctx->original_export_path.empty() ? + "" : + (std::string("ref ") + child_ctx->original_export_path).c_str()); } else { printf(" - %s (dup by %s%s) %s\n", child_ctx->object->id.name + 2, child_ctx->duplicator->id.name + 2, child_ctx->weak_export ? ", weak" : "", - child_ctx->original_export_path.size() ? - (std::string("ref ") + child_ctx->original_export_path).c_str() : - ""); + child_ctx->original_export_path.empty() ? + "" : + (std::string("ref ") + child_ctx->original_export_path).c_str()); } } } |