diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-09-02 21:32:35 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-09-02 21:34:37 +0300 |
commit | 73434f02c382f50f1e8f0dd271f2870d4b62b5d1 (patch) | |
tree | ddc93cd973ed6ae8011c12a21868e53400354d9e /source/blender/editors | |
parent | 4e84fba54704b27b3b2262bce0b38df3334792a8 (diff) |
Cleanup: Fix clang-tidy warnings: [modernize-use-nullptr]
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_select.cc b/source/blender/editors/space_view3d/view3d_select.cc index e7a3c5e0e4d..f757cb45eec 100644 --- a/source/blender/editors/space_view3d/view3d_select.cc +++ b/source/blender/editors/space_view3d/view3d_select.cc @@ -1277,7 +1277,7 @@ static bool view3d_lasso_select(bContext *C, Object *ob = CTX_data_active_object(C); bool changed_multi = false; - wmGenericUserData wm_userdata_buf = {0}; + wmGenericUserData wm_userdata_buf = {nullptr, nullptr, false}; wmGenericUserData *wm_userdata = &wm_userdata_buf; if (vc->obedit == nullptr) { /* Object Mode */ @@ -3779,7 +3779,7 @@ static int view3d_box_select_exec(bContext *C, wmOperator *op) rcti rect; bool changed_multi = false; - wmGenericUserData wm_userdata_buf = {0}; + wmGenericUserData wm_userdata_buf = {nullptr, nullptr, false}; wmGenericUserData *wm_userdata = &wm_userdata_buf; view3d_operator_needs_opengl(C); @@ -4678,7 +4678,7 @@ static int view3d_circle_select_exec(bContext *C, wmOperator *op) /* Allow each selection type to allocate their own data that's used between executions. */ wmGesture *gesture = static_cast<wmGesture *>(op->customdata); /* nullptr when non-modal. */ - wmGenericUserData wm_userdata_buf = {0}; + wmGenericUserData wm_userdata_buf = {nullptr, nullptr, false}; wmGenericUserData *wm_userdata = gesture ? &gesture->user_data : &wm_userdata_buf; const eSelectOp sel_op = ED_select_op_modal( |