diff options
author | Hans Goudey <h.goudey@me.com> | 2022-10-04 01:37:25 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-10-04 01:38:16 +0300 |
commit | 97746129d5870beedc40e3c035c7982ce8a6bebc (patch) | |
tree | b819b8e7875e6684aad7ea1f6bb7922d4fa1c8fc /source/blender/editors/asset | |
parent | ed7f5713f8f9d605e3cd4cce42e40fb5c6bf4bf5 (diff) |
Cleanup: replace UNUSED macro with commented args in C++ code
This is the conventional way of dealing with unused arguments in C++,
since it works on all compilers.
Regex find and replace: `UNUSED\((\w+)\)` -> `/*$1*/`
Diffstat (limited to 'source/blender/editors/asset')
-rw-r--r-- | source/blender/editors/asset/intern/asset_ops.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/asset/intern/asset_ops.cc b/source/blender/editors/asset/intern/asset_ops.cc index 5aac4f02b03..08259090e0c 100644 --- a/source/blender/editors/asset/intern/asset_ops.cc +++ b/source/blender/editors/asset/intern/asset_ops.cc @@ -344,8 +344,8 @@ static bool asset_clear_poll(bContext *C) return true; } -static char *asset_clear_get_description(struct bContext *UNUSED(C), - struct wmOperatorType *UNUSED(op), +static char *asset_clear_get_description(struct bContext * /*C*/, + struct wmOperatorType * /*op*/, struct PointerRNA *values) { const bool set_fake_user = RNA_boolean_get(values, "set_fake_user"); @@ -397,7 +397,7 @@ static bool asset_library_refresh_poll(bContext *C) return ED_assetlist_storage_has_list_for_library(library); } -static int asset_library_refresh_exec(bContext *C, wmOperator *UNUSED(unused)) +static int asset_library_refresh_exec(bContext *C, wmOperator * /*unused*/) { /* Execution mode #1: Inside the Asset Browser. */ if (ED_operator_asset_browsing_active(C)) { @@ -773,9 +773,9 @@ static int asset_bundle_install_exec(bContext *C, wmOperator *op) return OPERATOR_FINISHED; } -static const EnumPropertyItem *rna_asset_library_reference_itemf(bContext *UNUSED(C), - PointerRNA *UNUSED(ptr), - PropertyRNA *UNUSED(prop), +static const EnumPropertyItem *rna_asset_library_reference_itemf(bContext * /*C*/, + PointerRNA * /*ptr*/, + PropertyRNA * /*prop*/, bool *r_free) { const EnumPropertyItem *items = ED_asset_library_reference_to_rna_enum_itemf(false); |