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_ops.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_ops.cc')
-rw-r--r-- | source/blender/editors/sculpt_paint/curves_sculpt_ops.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc index 3068ce9417b..6366da310b6 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc @@ -153,7 +153,7 @@ struct SculptCurvesBrushStrokeData { static bool stroke_get_location(bContext *C, float out[3], const float mouse[2], - bool UNUSED(force_original)) + bool /*force_original*/) { out[0] = mouse[0]; out[1] = mouse[1]; @@ -170,7 +170,7 @@ static bool stroke_test_start(bContext *C, struct wmOperator *op, const float mo static void stroke_update_step(bContext *C, wmOperator *op, - PaintStroke *UNUSED(stroke), + PaintStroke * /*stroke*/, PointerRNA *stroke_element) { SculptCurvesBrushStrokeData *op_data = static_cast<SculptCurvesBrushStrokeData *>( @@ -448,7 +448,7 @@ static int select_random_exec(bContext *C, wmOperator *op) return OPERATOR_FINISHED; } -static void select_random_ui(bContext *UNUSED(C), wmOperator *op) +static void select_random_ui(bContext * /*C*/, wmOperator *op) { uiLayout *layout = op->layout; @@ -1003,7 +1003,7 @@ static int calculate_points_per_side(bContext *C, MinDistanceEditData &op_data) return std::min(300, needed_points); } -static void min_distance_edit_draw(bContext *C, int UNUSED(x), int UNUSED(y), void *customdata) +static void min_distance_edit_draw(bContext *C, int /*x*/, int /*y*/, void *customdata) { Scene *scene = CTX_data_scene(C); MinDistanceEditData &op_data = *static_cast<MinDistanceEditData *>(customdata); |