diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-03 14:36:48 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-03 14:36:48 +0300 |
commit | b837933b17ec1b3ec9c375eff000c1d55c438bab (patch) | |
tree | 1e1291a8c723b56416700d6939f18d64459f668a /source/blender/editors/space_spreadsheet | |
parent | 3ca094651b5493e5d73507c3689592c9c64ed65a (diff) |
Cleanup: clang-tidy
Diffstat (limited to 'source/blender/editors/space_spreadsheet')
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc | 8 | ||||
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_ops.cc | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc b/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc index 1b8d272250c..ed8d9a87583 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc @@ -392,11 +392,9 @@ static Span<int64_t> filter_visible_mesh_vertex_rows(const bContext *C, /* This is safe, because the vector lives in the resource collector. */ return visible_rows.as_span(); } - else { - /* No filter is used. */ - const int domain_size = component->attribute_domain_size(ATTR_DOMAIN_POINT); - return IndexRange(domain_size).as_span(); - } + /* No filter is used. */ + const int domain_size = component->attribute_domain_size(ATTR_DOMAIN_POINT); + return IndexRange(domain_size).as_span(); } std::unique_ptr<SpreadsheetDrawer> spreadsheet_drawer_from_geometry_attributes(const bContext *C, diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc b/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc index 2887091fc1a..770bd207e8d 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc @@ -16,6 +16,6 @@ #include "spreadsheet_intern.hh" -void spreadsheet_operatortypes(void) +void spreadsheet_operatortypes() { } |