[Bf-blender-cvs] [85ef8e19455] master: Cleanup: Use C++ style of avoiding unused variable warnings

Hans Goudey noreply at git.blender.org
Thu Jul 7 16:03:06 CEST 2022


Commit: 85ef8e194555240d518a7a7e7f06fcc4c47fa8c7
Author: Hans Goudey
Date:   Thu Jul 7 08:55:36 2022 -0500
Branches: master
https://developer.blender.org/rB85ef8e194555240d518a7a7e7f06fcc4c47fa8c7

Cleanup: Use C++ style of avoiding unused variable warnings

As documented in the best practices section of the style guide:
https://wiki.blender.org/wiki/Style_Guide/Best_Practice_C_Cpp

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

M	source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh

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

diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh b/source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh
index 76c7131e268..6a09d3f84c6 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh
@@ -27,9 +27,8 @@ class DataSource {
    * column. (This can be made a bit more generic in the future when necessary.)
    */
   virtual void foreach_default_column_ids(
-      FunctionRef<void(const SpreadsheetColumnID &, bool is_extra)> fn) const
+      FunctionRef<void(const SpreadsheetColumnID &, bool is_extra)> /*fn*/) const
   {
-    UNUSED_VARS(fn);
   }
 
   /**
@@ -37,9 +36,8 @@ class DataSource {
    * returned.
    */
   virtual std::unique_ptr<ColumnValues> get_column_values(
-      const SpreadsheetColumnID &column_id) const
+      const SpreadsheetColumnID & /*column_id*/) const
   {
-    UNUSED_VARS(column_id);
     return {};
   }



More information about the Bf-blender-cvs mailing list