Cleanup: unused parameters, `nullptr` instead of `NULL` in cpp code...

This commit is contained in:
Bastien Montagne 2021-10-20 14:56:18 +02:00
parent dfb193f634
commit 3435ea014d
4 changed files with 5 additions and 5 deletions

View File

@ -309,7 +309,7 @@ static double test_vec_roll_to_mat3_orthogonal(double s, double x, double z)
{
const float input[3] = {float(x), float(s * sqrt(1 - x * x - z * z)), float(z)};
return test_vec_roll_to_mat3_normalized(input, 0.0f, NULL);
return test_vec_roll_to_mat3_normalized(input, 0.0f, nullptr);
}
/** Test that the matrix is orthogonal for a range of inputs close to -Y. */

View File

@ -100,7 +100,7 @@ bool ED_gizmotypes_snap_3d_invert_snap_get(struct wmGizmo *UNUSED(gz))
return snap_data->is_snap_invert;
}
bool ED_gizmotypes_snap_3d_is_enabled(const wmGizmo *gz)
bool ED_gizmotypes_snap_3d_is_enabled(const wmGizmo *UNUSED(gz))
{
V3DSnapCursorData *snap_data = ED_view3d_cursor_snap_data_get(NULL, NULL, 0, 0);
return snap_data->is_enabled;

View File

@ -754,7 +754,7 @@ static bool v3d_cursor_snap_pool_fn(bContext *C)
return true;
}
static void v3d_cursor_snap_draw_fn(bContext *C, int x, int y, void *customdata)
static void v3d_cursor_snap_draw_fn(bContext *C, int x, int y, void *UNUSED(customdata))
{
SnapCursorDataIntern *data_intern = &g_data_intern;
V3DSnapCursorState *state = ED_view3d_cursor_snap_state_get();

View File

@ -694,8 +694,8 @@ static void draw_primitive_view(const struct bContext *C, ARegion *UNUSED(region
* Use by both the operator and placement cursor.
* \{ */
static bool view3d_interactive_add_calc_snap(bContext *C,
const wmEvent *event,
static bool view3d_interactive_add_calc_snap(bContext *UNUSED(C),
const wmEvent *UNUSED(event),
float r_co_src[3],
float r_matrix_orient[3][3],
bool *r_is_enabled,