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/sculpt_paint/curves_sculpt_density.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/editors/sculpt_paint/curves_sculpt_density.cc')
-rw-r--r-- | source/blender/editors/sculpt_paint/curves_sculpt_density.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_density.cc b/source/blender/editors/sculpt_paint/curves_sculpt_density.cc index 2cd4528503e..78e2d55e6b9 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_density.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_density.cc @@ -234,7 +234,7 @@ struct DensityAddOperationExecutor { new_roots_kdtree, root_pos_cu, brush_settings_->minimum_distance, - [&](const int other_new_i, const float *UNUSED(co), float UNUSED(dist_sq)) { + [&](const int other_new_i, const float * /*co*/, float /*dist_sq*/) { if (other_new_i == -1) { new_curve_skipped[new_i] = true; return false; @@ -415,7 +415,7 @@ struct DensityAddOperationExecutor { *surface_bvh_eval_.tree, brush_pos_su, brush_radius_su, - [&](const int index, const float3 &UNUSED(co), const float UNUSED(dist_sq)) { + [&](const int index, const float3 & /*co*/, const float /*dist_sq*/) { selected_looptri_indices.append(index); }); @@ -687,7 +687,7 @@ struct DensitySubtractOperationExecutor { root_points_kdtree_, orig_pos_cu, minimum_distance_, - [&](const int other_curve_i, const float *UNUSED(co), float UNUSED(dist_sq)) { + [&](const int other_curve_i, const float * /*co*/, float /*dist_sq*/) { if (other_curve_i == curve_i) { return true; } @@ -772,7 +772,7 @@ struct DensitySubtractOperationExecutor { root_points_kdtree_, pos_cu, minimum_distance_, - [&](const int other_curve_i, const float *UNUSED(co), float UNUSED(dist_sq)) { + [&](const int other_curve_i, const float * /*co*/, float /*dist_sq*/) { if (other_curve_i == curve_i) { return true; } |