Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-03 15:59:27 +0300
committerJacques Lucke <jacques@blender.org>2020-07-03 15:59:27 +0300
commit2633683b52054d15006aea1314f62f73a8505b42 (patch)
treea97b2916170b53f04fc9a898f4eedb527f14f84e /source/blender/io/alembic/intern/alembic_capi.cc
parent93da09d717ff4502975c506c574faf0c07f010b4 (diff)
Clang-tidy: enable readability-container-size-empty warning
Reviewers: sergey Differential Revision: https://developer.blender.org/D8197
Diffstat (limited to 'source/blender/io/alembic/intern/alembic_capi.cc')
-rw-r--r--source/blender/io/alembic/intern/alembic_capi.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/io/alembic/intern/alembic_capi.cc b/source/blender/io/alembic/intern/alembic_capi.cc
index 5932791ecf4..7cde2d4fe73 100644
--- a/source/blender/io/alembic/intern/alembic_capi.cc
+++ b/source/blender/io/alembic/intern/alembic_capi.cc
@@ -373,7 +373,7 @@ static std::pair<bool, AbcObjectReader *> visit_object(
}
}
else if (object.getParent()) {
- if (claiming_child_readers.size() > 0) {
+ if (!claiming_child_readers.empty()) {
/* The first claiming child will serve just fine as parent to
* our non-claiming children. Since all claiming children share
* the same XForm, it doesn't really matter which one we pick. */
@@ -479,7 +479,7 @@ static void import_startjob(void *user_data, short *stop, short *do_update, floa
visit_object(archive->getTop(), data->readers, data->settings, assign_as_parent);
/* There shouldn't be any orphans. */
- BLI_assert(assign_as_parent.size() == 0);
+ BLI_assert(assign_as_parent.empty());
if (G.is_break) {
data->was_cancelled = true;