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/transform | |
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/transform')
-rw-r--r-- | source/blender/editors/transform/transform_snap_object.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.cc b/source/blender/editors/transform/transform_snap_object.cc index 2f77009e720..90a13722b63 100644 --- a/source/blender/editors/transform/transform_snap_object.cc +++ b/source/blender/editors/transform/transform_snap_object.cc @@ -1244,7 +1244,7 @@ static void nearest_world_tree_co(BVHTree *tree, } } -static bool nearest_world_tree(SnapObjectContext *UNUSED(sctx), +static bool nearest_world_tree(SnapObjectContext * /*sctx*/, const struct SnapObjectParams *params, BVHTree *tree, BVHTree_NearestPointCallback nearest_cb, @@ -2200,7 +2200,7 @@ static eSnapMode snapArmature(SnapObjectContext *sctx, float *dist_px, /* return args */ float r_loc[3], - float *UNUSED(r_no), + float * /*r_no*/, int *r_index) { eSnapMode retval = SCE_SNAP_MODE_NONE; @@ -2367,7 +2367,7 @@ static eSnapMode snapCurve(SnapObjectContext *sctx, float *dist_px, /* return args */ float r_loc[3], - float *UNUSED(r_no), + float * /*r_no*/, int *r_index) { bool has_snap = false; @@ -2537,7 +2537,7 @@ static eSnapMode snap_object_center(const SnapObjectContext *sctx, float *dist_px, /* return args */ float r_loc[3], - float *UNUSED(r_no), + float * /*r_no*/, int *r_index) { eSnapMode retval = SCE_SNAP_MODE_NONE; |