Commit: b837933b17ec1b3ec9c375eff000c1d55c438bab
Author: Jacques Lucke
Date:   Wed Mar 3 12:36:48 2021 +0100
Branches: temp-spreadsheet-editor-python-prototyping
https://developer.blender.org/rBb837933b17ec1b3ec9c375eff000c1d55c438bab

Cleanup: clang-tidy

===================================================================

M       source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc
M       source/blender/editors/space_spreadsheet/spreadsheet_ops.cc

===================================================================

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()
 {
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to