Clang-tidy: enable readability-container-size-empty warning
Reviewers: sergey Differential Revision: https://developer.blender.org/D8197
This commit is contained in:
@@ -78,7 +78,7 @@ void BCAnimationSampler::add_object(Object *ob)
|
||||
BCAnimationCurveMap *BCAnimationSampler::get_curves(Object *ob)
|
||||
{
|
||||
BCAnimation &animation = *objects[ob];
|
||||
if (animation.curve_map.size() == 0) {
|
||||
if (animation.curve_map.empty()) {
|
||||
initialize_curves(animation.curve_map, ob);
|
||||
}
|
||||
return &animation.curve_map;
|
||||
@@ -279,7 +279,7 @@ void BCAnimationSampler::find_depending_animated(std::set<Object *> &animated_ob
|
||||
break;
|
||||
}
|
||||
}
|
||||
} while (found_more && candidates.size() > 0);
|
||||
} while (found_more && !candidates.empty());
|
||||
}
|
||||
|
||||
void BCAnimationSampler::get_animated_from_export_set(std::set<Object *> &animated_objects,
|
||||
|
||||
Reference in New Issue
Block a user