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/functions/intern/field.cc | |
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/functions/intern/field.cc')
-rw-r--r-- | source/blender/functions/intern/field.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/functions/intern/field.cc b/source/blender/functions/intern/field.cc index dca12859b72..d2205864945 100644 --- a/source/blender/functions/intern/field.cc +++ b/source/blender/functions/intern/field.cc @@ -552,9 +552,9 @@ GVArray IndexFieldInput::get_index_varray(IndexMask mask) return VArray<int>::ForFunc(mask.min_array_size(), index_func); } -GVArray IndexFieldInput::get_varray_for_context(const fn::FieldContext &UNUSED(context), +GVArray IndexFieldInput::get_varray_for_context(const fn::FieldContext & /*context*/, IndexMask mask, - ResourceScope &UNUSED(scope)) const + ResourceScope & /*scope*/) const { /* TODO: Investigate a similar method to IndexRange::as_span() */ return get_index_varray(mask); @@ -743,7 +743,7 @@ int FieldEvaluator::add(GField field, GVArray *varray_ptr) const int field_index = fields_to_evaluate_.append_and_get_index(std::move(field)); dst_varrays_.append(nullptr); output_pointer_infos_.append(OutputPointerInfo{ - varray_ptr, [](void *dst, const GVArray &varray, ResourceScope &UNUSED(scope)) { + varray_ptr, [](void *dst, const GVArray &varray, ResourceScope & /*scope*/) { *static_cast<GVArray *>(dst) = varray; }}); return field_index; |