diff options
author | Jacques Lucke <jacques@blender.org> | 2021-07-26 12:43:51 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-07-26 12:43:51 +0300 |
commit | 12afb1995975e4cbe7c9ec82e96c113c9a9198b1 (patch) | |
tree | c9fcc66a24d30575338b16d4e01eef0e8e9eadba /source/blender/editors | |
parent | 6abf63f463cf124eaeb894c7d728550fca54a239 (diff) |
Cleanup: clang tidy
Diffstat (limited to 'source/blender/editors')
3 files changed, 10 insertions, 9 deletions
diff --git a/source/blender/editors/armature/pose_backup.cc b/source/blender/editors/armature/pose_backup.cc index 9b2d3e37d98..9c9347309b2 100644 --- a/source/blender/editors/armature/pose_backup.cc +++ b/source/blender/editors/armature/pose_backup.cc @@ -38,14 +38,14 @@ using namespace blender::bke; /* simple struct for storing backup info for one pose channel */ -typedef struct PoseChannelBackup { +struct PoseChannelBackup { struct PoseChannelBackup *next, *prev; struct bPoseChannel *pchan; /* Pose channel this backup is for. */ struct bPoseChannel olddata; /* Backup of pose channel. */ struct IDProperty *oldprops; /* Backup copy (needs freeing) of pose channel's ID properties. */ -} PoseChannelBackup; +}; struct PoseBackup { bool is_bone_selection_relevant; @@ -61,7 +61,7 @@ static PoseBackup *pose_backup_create(const Object *ob, BoneNameSet backed_up_bone_names; /* Make a backup of the given pose channel. */ - auto store_animated_pchans = [&](FCurve *, const char *bone_name) { + auto store_animated_pchans = [&](FCurve * /* unused */, const char *bone_name) { if (backed_up_bone_names.contains(bone_name)) { /* Only backup each bone once. */ return; diff --git a/source/blender/editors/asset/intern/asset_library_reference_enum.cc b/source/blender/editors/asset/intern/asset_library_reference_enum.cc index 13595ffa6ba..5a8fed6fea1 100644 --- a/source/blender/editors/asset/intern/asset_library_reference_enum.cc +++ b/source/blender/editors/asset/intern/asset_library_reference_enum.cc @@ -109,15 +109,15 @@ const EnumPropertyItem *ED_asset_library_reference_to_rna_enum_itemf() ICON_BLENDER, "Current File", "Show the assets currently available in this Blender session"}, - {0, NULL, 0, NULL, NULL}, + {0, nullptr, 0, nullptr, nullptr}, }; - EnumPropertyItem *item = NULL; + EnumPropertyItem *item = nullptr; int totitem = 0; /* Add separator if needed. */ if (!BLI_listbase_is_empty(&U.asset_libraries)) { - const EnumPropertyItem sepr = {0, "", 0, "Custom", NULL}; + const EnumPropertyItem sepr = {0, "", 0, "Custom", nullptr}; RNA_enum_item_add(&item, &totitem, &sepr); } @@ -144,7 +144,7 @@ const EnumPropertyItem *ED_asset_library_reference_to_rna_enum_itemf() } if (totitem) { - const EnumPropertyItem sepr = {0, "", 0, "Built-in", NULL}; + const EnumPropertyItem sepr = {0, "", 0, "Built-in", nullptr}; RNA_enum_item_add(&item, &totitem, &sepr); } diff --git a/source/blender/editors/interface/interface_template_asset_view.cc b/source/blender/editors/interface/interface_template_asset_view.cc index de3b49eec07..a691fff4963 100644 --- a/source/blender/editors/interface/interface_template_asset_view.cc +++ b/source/blender/editors/interface/interface_template_asset_view.cc @@ -59,9 +59,10 @@ static void asset_view_item_but_drag_set(uiBut *but, } char blend_path[FILE_MAX_LIBEXTRA]; - /* Context can be NULL here, it's only needed for a File Browser specific hack that should go + /* Context can be null here, it's only needed for a File Browser specific hack that should go * away before too long. */ - ED_asset_handle_get_full_library_path(NULL, &list_data->asset_library, asset_handle, blend_path); + ED_asset_handle_get_full_library_path( + nullptr, &list_data->asset_library, asset_handle, blend_path); if (blend_path[0]) { ImBuf *imbuf = ED_assetlist_asset_image_get(asset_handle); |