[Bf-blender-cvs] [22fc75e9dab] temp-asset-browser-catalogs-ui: Cleanup: clang-tidy warnings

Julian Eisel noreply at git.blender.org
Mon Sep 27 18:19:20 CEST 2021


Commit: 22fc75e9dab6417079d378b82e429b19ebf070b4
Author: Julian Eisel
Date:   Mon Sep 27 18:19:02 2021 +0200
Branches: temp-asset-browser-catalogs-ui
https://developer.blender.org/rB22fc75e9dab6417079d378b82e429b19ebf070b4

Cleanup: clang-tidy warnings

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

M	source/blender/editors/asset/intern/asset_ops.cc
M	source/blender/editors/space_file/asset_catalog_tree_view.cc

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

diff --git a/source/blender/editors/asset/intern/asset_ops.cc b/source/blender/editors/asset/intern/asset_ops.cc
index 584b4f297f7..24352630df4 100644
--- a/source/blender/editors/asset/intern/asset_ops.cc
+++ b/source/blender/editors/asset/intern/asset_ops.cc
@@ -320,7 +320,7 @@ static int asset_catalog_new_exec(bContext *C, wmOperator *op)
 
   MEM_freeN(parent_path);
 
-  WM_main_add_notifier(NC_SPACE | ND_SPACE_ASSET_PARAMS, NULL);
+  WM_main_add_notifier(NC_SPACE | ND_SPACE_ASSET_PARAMS, nullptr);
 
   return OPERATOR_FINISHED;
 }
@@ -359,7 +359,7 @@ static int asset_catalog_delete_exec(bContext *C, wmOperator *op)
 
   MEM_freeN(catalog_id_str);
 
-  WM_main_add_notifier(NC_SPACE | ND_SPACE_ASSET_PARAMS, NULL);
+  WM_main_add_notifier(NC_SPACE | ND_SPACE_ASSET_PARAMS, nullptr);
 
   return OPERATOR_FINISHED;
 }
diff --git a/source/blender/editors/space_file/asset_catalog_tree_view.cc b/source/blender/editors/space_file/asset_catalog_tree_view.cc
index 66eea35247a..e81cbb4e1f2 100644
--- a/source/blender/editors/space_file/asset_catalog_tree_view.cc
+++ b/source/blender/editors/space_file/asset_catalog_tree_view.cc
@@ -141,7 +141,7 @@ void AssetCatalogTreeView::build_tree()
   FileAssetSelectParams *params = params_;
 
   item = &add_tree_item<AssetCatalogTreeViewAllItem>(
-      IFACE_("All"), ICON_HOME, [params](ui::BasicTreeViewItem &) {
+      IFACE_("All"), ICON_HOME, [params](ui::BasicTreeViewItem & /*item*/) {
         params->asset_catalog_visibility = FILE_SHOW_ASSETS_ALL_CATALOGS;
         WM_main_add_notifier(NC_SPACE | ND_SPACE_ASSET_PARAMS, nullptr);
       });
@@ -160,7 +160,7 @@ void AssetCatalogTreeView::build_tree()
   }
 
   item = &add_tree_item<ui::BasicTreeViewItem>(
-      IFACE_("Unassigned"), ICON_FILE_HIDDEN, [params](ui::BasicTreeViewItem &) {
+      IFACE_("Unassigned"), ICON_FILE_HIDDEN, [params](ui::BasicTreeViewItem & /*item*/) {
         params->asset_catalog_visibility = FILE_SHOW_ASSETS_WITHOUT_CATALOG;
         WM_main_add_notifier(NC_SPACE | ND_SPACE_ASSET_PARAMS, nullptr);
       });



More information about the Bf-blender-cvs mailing list