diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-12-29 04:58:50 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-12-29 04:58:50 +0300 |
commit | 53ed7ec7f2edc51cbc601da19dc2a0c679b960de (patch) | |
tree | 6d2a30c65fbd2f174752b6fe176941fa2f98cb2c /source/blender/editors | |
parent | c34ea3323a3aa4b9a08cf5c67c8a8b4a3056bae1 (diff) |
Cleanup: clang-tidy
- modernize-deprecated-headers
- modernize-redundant-void-arg
Missed in rB11ac276caaa6e6d42176452526af97cf972abb5f
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/render/render_ops.cc | 4 | ||||
-rw-r--r-- | source/blender/editors/render/render_preview.cc | 6 | ||||
-rw-r--r-- | source/blender/editors/render/render_shading.cc | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/render/render_ops.cc b/source/blender/editors/render/render_ops.cc index a59c762d20d..0f10d186e6e 100644 --- a/source/blender/editors/render/render_ops.cc +++ b/source/blender/editors/render/render_ops.cc @@ -21,7 +21,7 @@ * \ingroup edrend */ -#include <stdlib.h> +#include <cstdlib> #include "BLI_utildefines.h" @@ -33,7 +33,7 @@ /***************************** render ***********************************/ -void ED_operatortypes_render(void) +void ED_operatortypes_render() { WM_operatortype_append(OBJECT_OT_material_slot_add); WM_operatortype_append(OBJECT_OT_material_slot_remove); diff --git a/source/blender/editors/render/render_preview.cc b/source/blender/editors/render/render_preview.cc index 2b9dcdcacae..a26103b65e1 100644 --- a/source/blender/editors/render/render_preview.cc +++ b/source/blender/editors/render/render_preview.cc @@ -193,7 +193,7 @@ static Main *load_main_from_memory(const void *blend, int blend_size) } #endif -void ED_preview_ensure_dbase(void) +void ED_preview_ensure_dbase() { #ifndef WITH_HEADLESS static bool base_initialized = false; @@ -218,7 +218,7 @@ static bool preview_method_is_render(const ePreviewRenderMethod pr_method) return ELEM(pr_method, PR_ICON_RENDER, PR_BUTS_RENDER); } -void ED_preview_free_dbase(void) +void ED_preview_free_dbase() { if (G_pr_main) { BKE_main_free(G_pr_main); @@ -1900,7 +1900,7 @@ struct PreviewRestartQueueEntry { static ListBase /* #PreviewRestartQueueEntry */ G_restart_previews_queue; -void ED_preview_restart_queue_free(void) +void ED_preview_restart_queue_free() { BLI_freelistN(&G_restart_previews_queue); } diff --git a/source/blender/editors/render/render_shading.cc b/source/blender/editors/render/render_shading.cc index e1b4c58fb14..992bba420c1 100644 --- a/source/blender/editors/render/render_shading.cc +++ b/source/blender/editors/render/render_shading.cc @@ -2394,7 +2394,7 @@ void MATERIAL_OT_paste(wmOperatorType *ot) static short mtexcopied = 0; /* must be reset on file load */ static MTex mtexcopybuf; -void ED_render_clear_mtex_copybuf(void) +void ED_render_clear_mtex_copybuf() { /* use for file reload */ mtexcopied = 0; } |