diff --git a/intern/ghost/intern/GHOST_C-api.cc b/intern/ghost/intern/GHOST_C-api.cc index 063489b3f41..efd41f3127b 100644 --- a/intern/ghost/intern/GHOST_C-api.cc +++ b/intern/ghost/intern/GHOST_C-api.cc @@ -23,7 +23,7 @@ #include "intern/GHOST_CallbackEventConsumer.hh" #include "intern/GHOST_XrException.hh" -GHOST_SystemHandle GHOST_CreateSystem(void) +GHOST_SystemHandle GHOST_CreateSystem() { GHOST_ISystem::createSystem(true, false); GHOST_ISystem *system = GHOST_ISystem::getSystem(); @@ -31,7 +31,7 @@ GHOST_SystemHandle GHOST_CreateSystem(void) return (GHOST_SystemHandle)system; } -GHOST_SystemHandle GHOST_CreateSystemBackground(void) +GHOST_SystemHandle GHOST_CreateSystemBackground() { GHOST_ISystem::createSystemBackground(); GHOST_ISystem *system = GHOST_ISystem::getSystem(); @@ -885,7 +885,7 @@ void GHOST_putClipboard(const char *buffer, bool selection) system->putClipboard(buffer, selection); } -GHOST_TSuccess GHOST_hasClipboardImage(void) +GHOST_TSuccess GHOST_hasClipboardImage() { GHOST_ISystem *system = GHOST_ISystem::getSystem(); return system->hasClipboardImage(); @@ -909,13 +909,13 @@ bool GHOST_setConsoleWindowState(GHOST_TConsoleWindowState action) return system->setConsoleWindowState(action); } -bool GHOST_UseNativePixels(void) +bool GHOST_UseNativePixels() { GHOST_ISystem *system = GHOST_ISystem::getSystem(); return system->useNativePixel(); } -GHOST_TCapabilityFlag GHOST_GetCapabilities(void) +GHOST_TCapabilityFlag GHOST_GetCapabilities() { GHOST_ISystem *system = GHOST_ISystem::getSystem(); return system->getCapabilities(); diff --git a/source/blender/blenkernel/intern/blendfile.cc b/source/blender/blenkernel/intern/blendfile.cc index c71425abe76..05c2a77a508 100644 --- a/source/blender/blenkernel/intern/blendfile.cc +++ b/source/blender/blenkernel/intern/blendfile.cc @@ -1175,7 +1175,7 @@ UserDef *BKE_blendfile_userdef_read_from_memory(const void *filebuf, return userdef; } -UserDef *BKE_blendfile_userdef_from_defaults(void) +UserDef *BKE_blendfile_userdef_from_defaults() { UserDef *userdef = static_cast(MEM_callocN(sizeof(UserDef), __func__)); *userdef = blender::dna::shallow_copy(U_default); diff --git a/source/blender/blenkernel/intern/brush.cc b/source/blender/blenkernel/intern/brush.cc index 07817c01b98..4ea00dca440 100644 --- a/source/blender/blenkernel/intern/brush.cc +++ b/source/blender/blenkernel/intern/brush.cc @@ -464,13 +464,13 @@ IDTypeInfo IDType_ID_BR = { static RNG *brush_rng; -void BKE_brush_system_init(void) +void BKE_brush_system_init() { brush_rng = BLI_rng_new(0); BLI_rng_srandom(brush_rng, 31415682); } -void BKE_brush_system_exit(void) +void BKE_brush_system_exit() { if (brush_rng == nullptr) { return; diff --git a/source/blender/blenkernel/intern/context.cc b/source/blender/blenkernel/intern/context.cc index 2d46c585837..8dca8023148 100644 --- a/source/blender/blenkernel/intern/context.cc +++ b/source/blender/blenkernel/intern/context.cc @@ -101,7 +101,7 @@ struct bContext { /* context */ -bContext *CTX_create(void) +bContext *CTX_create() { bContext *C = MEM_cnew(__func__); diff --git a/source/blender/blenkernel/intern/image.cc b/source/blender/blenkernel/intern/image.cc index a8cb2bd24f3..7a3287fba13 100644 --- a/source/blender/blenkernel/intern/image.cc +++ b/source/blender/blenkernel/intern/image.cc @@ -4831,7 +4831,7 @@ struct ImagePool { ThreadMutex mutex; }; -ImagePool *BKE_image_pool_new(void) +ImagePool *BKE_image_pool_new() { ImagePool *pool = MEM_cnew("Image Pool"); pool->memory_pool = BLI_mempool_create(sizeof(ImagePoolItem), 0, 128, BLI_MEMPOOL_NOP); diff --git a/source/blender/blenkernel/intern/layer.cc b/source/blender/blenkernel/intern/layer.cc index 2f5930b513b..5a1d246651b 100644 --- a/source/blender/blenkernel/intern/layer.cc +++ b/source/blender/blenkernel/intern/layer.cc @@ -778,12 +778,12 @@ int BKE_layer_collection_findindex(ViewLayer *view_layer, const LayerCollection static bool no_resync = false; -void BKE_layer_collection_resync_forbid(void) +void BKE_layer_collection_resync_forbid() { no_resync = true; } -void BKE_layer_collection_resync_allow(void) +void BKE_layer_collection_resync_allow() { no_resync = false; } diff --git a/source/blender/blenkernel/intern/lib_id_remapper.cc b/source/blender/blenkernel/intern/lib_id_remapper.cc index d9fa00c7a05..1a7f2770c67 100644 --- a/source/blender/blenkernel/intern/lib_id_remapper.cc +++ b/source/blender/blenkernel/intern/lib_id_remapper.cc @@ -138,7 +138,7 @@ static const blender::bke::id::remapper::IDRemapper *unwrap(const IDRemapper *re extern "C" { -IDRemapper *BKE_id_remapper_create(void) +IDRemapper *BKE_id_remapper_create() { blender::bke::id::remapper::IDRemapper *remapper = MEM_new(__func__); diff --git a/source/blender/blenkernel/intern/lib_override.cc b/source/blender/blenkernel/intern/lib_override.cc index a24775e79eb..73bdd948540 100644 --- a/source/blender/blenkernel/intern/lib_override.cc +++ b/source/blender/blenkernel/intern/lib_override.cc @@ -4699,7 +4699,7 @@ bool BKE_lib_override_library_id_is_user_deletable(Main *bmain, ID *id) * exact same data as "desired" ones (kind of "baked" data-blocks). */ -OverrideLibraryStorage *BKE_lib_override_library_operations_store_init(void) +OverrideLibraryStorage *BKE_lib_override_library_operations_store_init() { return BKE_main_new(); } diff --git a/source/blender/blenkernel/intern/mask.cc b/source/blender/blenkernel/intern/mask.cc index fb6b5954df4..6243dbf681d 100644 --- a/source/blender/blenkernel/intern/mask.cc +++ b/source/blender/blenkernel/intern/mask.cc @@ -2004,7 +2004,7 @@ static void mask_clipboard_free_ex(bool final_free) } } -void BKE_mask_clipboard_free(void) +void BKE_mask_clipboard_free() { mask_clipboard_free_ex(true); } @@ -2041,7 +2041,7 @@ void BKE_mask_clipboard_copy_from_layer(MaskLayer *mask_layer) } } -bool BKE_mask_clipboard_is_empty(void) +bool BKE_mask_clipboard_is_empty() { return BLI_listbase_is_empty(&mask_clipboard.splines); } diff --git a/source/blender/blenkernel/intern/mask_rasterize.cc b/source/blender/blenkernel/intern/mask_rasterize.cc index e4fb60817bc..a99c562c2be 100644 --- a/source/blender/blenkernel/intern/mask_rasterize.cc +++ b/source/blender/blenkernel/intern/mask_rasterize.cc @@ -204,7 +204,7 @@ struct MaskRasterHandle { /* alloc / free functions */ /* --------------------------------------------------------------------- */ -MaskRasterHandle *BKE_maskrasterize_handle_new(void) +MaskRasterHandle *BKE_maskrasterize_handle_new() { MaskRasterHandle *mr_handle; diff --git a/source/blender/blenkernel/intern/material.cc b/source/blender/blenkernel/intern/material.cc index 0b2ce067315..58f6c0d1a17 100644 --- a/source/blender/blenkernel/intern/material.cc +++ b/source/blender/blenkernel/intern/material.cc @@ -2015,32 +2015,32 @@ static void material_default_holdout_init(Material *ma) nodeSetActive(ntree, output); } -Material *BKE_material_default_empty(void) +Material *BKE_material_default_empty() { return &default_material_empty; } -Material *BKE_material_default_holdout(void) +Material *BKE_material_default_holdout() { return &default_material_holdout; } -Material *BKE_material_default_surface(void) +Material *BKE_material_default_surface() { return &default_material_surface; } -Material *BKE_material_default_volume(void) +Material *BKE_material_default_volume() { return &default_material_volume; } -Material *BKE_material_default_gpencil(void) +Material *BKE_material_default_gpencil() { return &default_material_gpencil; } -void BKE_material_defaults_free_gpu(void) +void BKE_material_defaults_free_gpu() { for (int i = 0; default_materials[i]; i++) { Material *ma = default_materials[i]; @@ -2052,7 +2052,7 @@ void BKE_material_defaults_free_gpu(void) /* Module functions called on startup and exit. */ -void BKE_materials_init(void) +void BKE_materials_init() { for (int i = 0; default_materials[i]; i++) { material_init_data(&default_materials[i]->id); @@ -2064,7 +2064,7 @@ void BKE_materials_init(void) material_default_gpencil_init(&default_material_gpencil); } -void BKE_materials_exit(void) +void BKE_materials_exit() { for (int i = 0; default_materials[i]; i++) { material_free_data(&default_materials[i]->id); diff --git a/source/blender/blenkernel/intern/mball_tessellate.cc b/source/blender/blenkernel/intern/mball_tessellate.cc index c372562f361..1b3d9e7c82a 100644 --- a/source/blender/blenkernel/intern/mball_tessellate.cc +++ b/source/blender/blenkernel/intern/mball_tessellate.cc @@ -826,7 +826,7 @@ static void makecubetable() } } -void BKE_mball_cubeTable_free(void) +void BKE_mball_cubeTable_free() { for (int i = 0; i < 256; i++) { INTLISTS *lists = cubetable[i]; diff --git a/source/blender/blenkernel/intern/modifier.cc b/source/blender/blenkernel/intern/modifier.cc index 83e96386112..94769adc824 100644 --- a/source/blender/blenkernel/intern/modifier.cc +++ b/source/blender/blenkernel/intern/modifier.cc @@ -80,7 +80,7 @@ static CLG_LogRef LOG = {"bke.modifier"}; static ModifierTypeInfo *modifier_types[NUM_MODIFIER_TYPES] = {nullptr}; static VirtualModifierData virtualModifierCommonData; -void BKE_modifier_init(void) +void BKE_modifier_init() { ModifierData *md; diff --git a/source/blender/blenkernel/intern/paint.cc b/source/blender/blenkernel/intern/paint.cc index a5f7cb3c553..08fdd97d961 100644 --- a/source/blender/blenkernel/intern/paint.cc +++ b/source/blender/blenkernel/intern/paint.cc @@ -274,13 +274,13 @@ void BKE_paint_invalidate_cursor_overlay(Scene *scene, ViewLayer *view_layer, Cu } } -void BKE_paint_invalidate_overlay_all(void) +void BKE_paint_invalidate_overlay_all() { overlay_flags |= (PAINT_OVERLAY_INVALID_TEXTURE_SECONDARY | PAINT_OVERLAY_INVALID_TEXTURE_PRIMARY | PAINT_OVERLAY_INVALID_CURVE); } -ePaintOverlayControlFlags BKE_paint_get_overlay_flags(void) +ePaintOverlayControlFlags BKE_paint_get_overlay_flags() { return overlay_flags; } diff --git a/source/blender/blenkernel/intern/particle.cc b/source/blender/blenkernel/intern/particle.cc index efef09b2045..643e9f3353a 100644 --- a/source/blender/blenkernel/intern/particle.cc +++ b/source/blender/blenkernel/intern/particle.cc @@ -517,7 +517,7 @@ uint PSYS_FRAND_SEED_OFFSET[PSYS_FRAND_COUNT]; uint PSYS_FRAND_SEED_MULTIPLIER[PSYS_FRAND_COUNT]; float PSYS_FRAND_BASE[PSYS_FRAND_COUNT]; -void BKE_particle_init_rng(void) +void BKE_particle_init_rng() { RNG *rng = BLI_rng_new_srandom(5831); /* arbitrary */ for (int i = 0; i < PSYS_FRAND_COUNT; i++) { diff --git a/source/blender/blenkernel/intern/texture.cc b/source/blender/blenkernel/intern/texture.cc index a64510ce3d8..196da54c542 100644 --- a/source/blender/blenkernel/intern/texture.cc +++ b/source/blender/blenkernel/intern/texture.cc @@ -347,7 +347,7 @@ void BKE_texture_mapping_init(TexMapping *texmap) } } -ColorMapping *BKE_texture_colormapping_add(void) +ColorMapping *BKE_texture_colormapping_add() { ColorMapping *colormap = MEM_cnew("ColorMapping"); @@ -407,7 +407,7 @@ void BKE_texture_mtex_default(MTex *mtex) /* ------------------------------------------------------------------------- */ -MTex *BKE_texture_mtex_add(void) +MTex *BKE_texture_mtex_add() { MTex *mtex; @@ -635,7 +635,7 @@ void BKE_texture_pointdensity_init_data(PointDensity *pd) BKE_curvemapping_changed(pd->falloff_curve, false); } -PointDensity *BKE_texture_pointdensity_add(void) +PointDensity *BKE_texture_pointdensity_add() { PointDensity *pd = static_cast( MEM_callocN(sizeof(PointDensity), "pointdensity")); diff --git a/source/blender/blenkernel/intern/tracking.cc b/source/blender/blenkernel/intern/tracking.cc index 2989a136c87..bad9538fbd7 100644 --- a/source/blender/blenkernel/intern/tracking.cc +++ b/source/blender/blenkernel/intern/tracking.cc @@ -170,7 +170,7 @@ struct TrackingCopyContext { GHash *old_to_new_plane_track_map; }; -static TrackingCopyContext tracking_copy_context_new(void) +static TrackingCopyContext tracking_copy_context_new() { TrackingCopyContext ctx = {}; ctx.old_to_new_track_map = BLI_ghash_ptr_new(__func__); @@ -436,7 +436,7 @@ void BKE_tracking_get_projection_matrix(MovieTracking *tracking, * Clipboard. */ -void BKE_tracking_clipboard_free(void) +void BKE_tracking_clipboard_free() { MovieTrackingTrack *track = static_cast(tracking_clipboard.tracks.first), *next_track; @@ -469,7 +469,7 @@ void BKE_tracking_clipboard_copy_tracks(MovieTracking * /*tracking*/, } } -bool BKE_tracking_clipboard_has_tracks(void) +bool BKE_tracking_clipboard_has_tracks() { return (BLI_listbase_is_empty(&tracking_clipboard.tracks) == false); } diff --git a/source/blender/blenkernel/intern/undo_system.cc b/source/blender/blenkernel/intern/undo_system.cc index 7bdc0288b95..4ea67391f90 100644 --- a/source/blender/blenkernel/intern/undo_system.cc +++ b/source/blender/blenkernel/intern/undo_system.cc @@ -249,7 +249,7 @@ static void undosys_stack_validate(UndoStack *ustack, bool expect_non_empty) static void undosys_stack_validate(UndoStack * /*ustack*/, bool /*expect_non_empty*/) {} #endif -UndoStack *BKE_undosys_stack_create(void) +UndoStack *BKE_undosys_stack_create() { UndoStack *ustack = MEM_cnew(__func__); return ustack; @@ -893,7 +893,7 @@ UndoType *BKE_undosys_type_append(void (*undosys_fn)(UndoType *)) return ut; } -void BKE_undosys_type_free_all(void) +void BKE_undosys_type_free_all() { UndoType *ut; while ((ut = static_cast(BLI_pophead(&g_undo_types)))) { diff --git a/source/blender/draw/engines/eevee/eevee_shaders.cc b/source/blender/draw/engines/eevee/eevee_shaders.cc index 973404376bb..483580590b4 100644 --- a/source/blender/draw/engines/eevee/eevee_shaders.cc +++ b/source/blender/draw/engines/eevee/eevee_shaders.cc @@ -259,18 +259,18 @@ static void eevee_shader_library_ensure() } } -void EEVEE_shaders_material_shaders_init(void) +void EEVEE_shaders_material_shaders_init() { eevee_shader_library_ensure(); } -DRWShaderLibrary *EEVEE_shader_lib_get(void) +DRWShaderLibrary *EEVEE_shader_lib_get() { eevee_shader_library_ensure(); return e_data.lib; } -GPUShader *EEVEE_shaders_probe_filter_glossy_sh_get(void) +GPUShader *EEVEE_shaders_probe_filter_glossy_sh_get() { if (e_data.probe_filter_glossy_sh == nullptr) { e_data.probe_filter_glossy_sh = DRW_shader_create_from_info_name( @@ -279,7 +279,7 @@ GPUShader *EEVEE_shaders_probe_filter_glossy_sh_get(void) return e_data.probe_filter_glossy_sh; } -GPUShader *EEVEE_shaders_probe_filter_diffuse_sh_get(void) +GPUShader *EEVEE_shaders_probe_filter_diffuse_sh_get() { if (e_data.probe_filter_diffuse_sh == nullptr) { const char *create_info_name = @@ -297,7 +297,7 @@ GPUShader *EEVEE_shaders_probe_filter_diffuse_sh_get(void) return e_data.probe_filter_diffuse_sh; } -GPUShader *EEVEE_shaders_probe_filter_visibility_sh_get(void) +GPUShader *EEVEE_shaders_probe_filter_visibility_sh_get() { if (e_data.probe_filter_visibility_sh == nullptr) { e_data.probe_filter_visibility_sh = DRW_shader_create_from_info_name( @@ -306,7 +306,7 @@ GPUShader *EEVEE_shaders_probe_filter_visibility_sh_get(void) return e_data.probe_filter_visibility_sh; } -GPUShader *EEVEE_shaders_probe_grid_fill_sh_get(void) +GPUShader *EEVEE_shaders_probe_grid_fill_sh_get() { if (e_data.probe_grid_fill_sh == nullptr) { const char *create_info_name = @@ -324,7 +324,7 @@ GPUShader *EEVEE_shaders_probe_grid_fill_sh_get(void) return e_data.probe_grid_fill_sh; } -GPUShader *EEVEE_shaders_probe_planar_downsample_sh_get(void) +GPUShader *EEVEE_shaders_probe_planar_downsample_sh_get() { if (e_data.probe_planar_downsample_sh == nullptr) { e_data.probe_planar_downsample_sh = DRW_shader_create_from_info_name( @@ -333,7 +333,7 @@ GPUShader *EEVEE_shaders_probe_planar_downsample_sh_get(void) return e_data.probe_planar_downsample_sh; } -GPUShader *EEVEE_shaders_studiolight_probe_sh_get(void) +GPUShader *EEVEE_shaders_studiolight_probe_sh_get() { if (e_data.studiolight_probe_sh == nullptr) { e_data.studiolight_probe_sh = DRW_shader_create_from_info_name( @@ -342,7 +342,7 @@ GPUShader *EEVEE_shaders_studiolight_probe_sh_get(void) return e_data.studiolight_probe_sh; } -GPUShader *EEVEE_shaders_studiolight_background_sh_get(void) +GPUShader *EEVEE_shaders_studiolight_background_sh_get() { if (e_data.studiolight_background_sh == nullptr) { e_data.studiolight_background_sh = DRW_shader_create_from_info_name( @@ -351,7 +351,7 @@ GPUShader *EEVEE_shaders_studiolight_background_sh_get(void) return e_data.studiolight_background_sh; } -GPUShader *EEVEE_shaders_probe_cube_display_sh_get(void) +GPUShader *EEVEE_shaders_probe_cube_display_sh_get() { if (e_data.probe_cube_display_sh == nullptr) { e_data.probe_cube_display_sh = DRW_shader_create_from_info_name( @@ -360,7 +360,7 @@ GPUShader *EEVEE_shaders_probe_cube_display_sh_get(void) return e_data.probe_cube_display_sh; } -GPUShader *EEVEE_shaders_probe_grid_display_sh_get(void) +GPUShader *EEVEE_shaders_probe_grid_display_sh_get() { if (e_data.probe_grid_display_sh == nullptr) { const char *probe_display_grid_info_name = nullptr; @@ -376,7 +376,7 @@ GPUShader *EEVEE_shaders_probe_grid_display_sh_get(void) return e_data.probe_grid_display_sh; } -GPUShader *EEVEE_shaders_probe_planar_display_sh_get(void) +GPUShader *EEVEE_shaders_probe_planar_display_sh_get() { if (e_data.probe_planar_display_sh == nullptr) { e_data.probe_planar_display_sh = DRW_shader_create_from_info_name( @@ -389,7 +389,7 @@ GPUShader *EEVEE_shaders_probe_planar_display_sh_get(void) /** \name Down-sampling * \{ */ -GPUShader *EEVEE_shaders_effect_color_copy_sh_get(void) +GPUShader *EEVEE_shaders_effect_color_copy_sh_get() { if (e_data.color_copy_sh == nullptr) { e_data.color_copy_sh = DRW_shader_create_from_info_name("eevee_legacy_color_copy"); @@ -397,7 +397,7 @@ GPUShader *EEVEE_shaders_effect_color_copy_sh_get(void) return e_data.color_copy_sh; } -GPUShader *EEVEE_shaders_effect_downsample_sh_get(void) +GPUShader *EEVEE_shaders_effect_downsample_sh_get() { if (e_data.downsample_sh == nullptr) { e_data.downsample_sh = DRW_shader_create_from_info_name("eevee_legacy_downsample"); @@ -405,7 +405,7 @@ GPUShader *EEVEE_shaders_effect_downsample_sh_get(void) return e_data.downsample_sh; } -GPUShader *EEVEE_shaders_effect_downsample_cube_sh_get(void) +GPUShader *EEVEE_shaders_effect_downsample_cube_sh_get() { if (e_data.downsample_cube_sh == nullptr) { e_data.downsample_cube_sh = DRW_shader_create_from_info_name( @@ -414,7 +414,7 @@ GPUShader *EEVEE_shaders_effect_downsample_cube_sh_get(void) return e_data.downsample_cube_sh; } -GPUShader *EEVEE_shaders_effect_minz_downlevel_sh_get(void) +GPUShader *EEVEE_shaders_effect_minz_downlevel_sh_get() { if (e_data.minz_downlevel_sh == nullptr) { e_data.minz_downlevel_sh = DRW_shader_create_from_info_name("eevee_legacy_minz_downlevel"); @@ -422,7 +422,7 @@ GPUShader *EEVEE_shaders_effect_minz_downlevel_sh_get(void) return e_data.minz_downlevel_sh; } -GPUShader *EEVEE_shaders_effect_maxz_downlevel_sh_get(void) +GPUShader *EEVEE_shaders_effect_maxz_downlevel_sh_get() { if (e_data.maxz_downlevel_sh == nullptr) { e_data.maxz_downlevel_sh = DRW_shader_create_from_info_name("eevee_legacy_maxz_downlevel"); @@ -430,7 +430,7 @@ GPUShader *EEVEE_shaders_effect_maxz_downlevel_sh_get(void) return e_data.maxz_downlevel_sh; } -GPUShader *EEVEE_shaders_effect_minz_downdepth_sh_get(void) +GPUShader *EEVEE_shaders_effect_minz_downdepth_sh_get() { if (e_data.minz_downdepth_sh == nullptr) { e_data.minz_downdepth_sh = DRW_shader_create_from_info_name("eevee_legacy_minz_downdepth"); @@ -438,7 +438,7 @@ GPUShader *EEVEE_shaders_effect_minz_downdepth_sh_get(void) return e_data.minz_downdepth_sh; } -GPUShader *EEVEE_shaders_effect_maxz_downdepth_sh_get(void) +GPUShader *EEVEE_shaders_effect_maxz_downdepth_sh_get() { if (e_data.maxz_downdepth_sh == nullptr) { e_data.maxz_downdepth_sh = DRW_shader_create_from_info_name("eevee_legacy_maxz_downdepth"); @@ -446,7 +446,7 @@ GPUShader *EEVEE_shaders_effect_maxz_downdepth_sh_get(void) return e_data.maxz_downdepth_sh; } -GPUShader *EEVEE_shaders_effect_minz_downdepth_layer_sh_get(void) +GPUShader *EEVEE_shaders_effect_minz_downdepth_layer_sh_get() { if (e_data.minz_downdepth_layer_sh == nullptr) { e_data.minz_downdepth_layer_sh = DRW_shader_create_from_info_name( @@ -455,7 +455,7 @@ GPUShader *EEVEE_shaders_effect_minz_downdepth_layer_sh_get(void) return e_data.minz_downdepth_layer_sh; } -GPUShader *EEVEE_shaders_effect_maxz_downdepth_layer_sh_get(void) +GPUShader *EEVEE_shaders_effect_maxz_downdepth_layer_sh_get() { if (e_data.maxz_downdepth_layer_sh == nullptr) { e_data.maxz_downdepth_layer_sh = DRW_shader_create_from_info_name( @@ -464,7 +464,7 @@ GPUShader *EEVEE_shaders_effect_maxz_downdepth_layer_sh_get(void) return e_data.maxz_downdepth_layer_sh; } -GPUShader *EEVEE_shaders_effect_maxz_copydepth_layer_sh_get(void) +GPUShader *EEVEE_shaders_effect_maxz_copydepth_layer_sh_get() { if (e_data.maxz_copydepth_layer_sh == nullptr) { e_data.maxz_copydepth_layer_sh = DRW_shader_create_from_info_name( @@ -473,7 +473,7 @@ GPUShader *EEVEE_shaders_effect_maxz_copydepth_layer_sh_get(void) return e_data.maxz_copydepth_layer_sh; } -GPUShader *EEVEE_shaders_effect_minz_copydepth_sh_get(void) +GPUShader *EEVEE_shaders_effect_minz_copydepth_sh_get() { if (e_data.minz_copydepth_sh == nullptr) { e_data.minz_copydepth_sh = DRW_shader_create_from_info_name("eevee_legacy_minz_copydepth"); @@ -481,7 +481,7 @@ GPUShader *EEVEE_shaders_effect_minz_copydepth_sh_get(void) return e_data.minz_copydepth_sh; } -GPUShader *EEVEE_shaders_effect_maxz_copydepth_sh_get(void) +GPUShader *EEVEE_shaders_effect_maxz_copydepth_sh_get() { if (e_data.maxz_copydepth_sh == nullptr) { e_data.maxz_copydepth_sh = DRW_shader_create_from_info_name("eevee_legacy_maxz_copydepth"); @@ -495,7 +495,7 @@ GPUShader *EEVEE_shaders_effect_maxz_copydepth_sh_get(void) /** \name GGX LUT * \{ */ -GPUShader *EEVEE_shaders_ggx_lut_sh_get(void) +GPUShader *EEVEE_shaders_ggx_lut_sh_get() { if (e_data.ggx_lut_sh == nullptr) { e_data.ggx_lut_sh = DRW_shader_create_from_info_name("eevee_legacy_ggx_lut_bsdf"); @@ -503,7 +503,7 @@ GPUShader *EEVEE_shaders_ggx_lut_sh_get(void) return e_data.ggx_lut_sh; } -GPUShader *EEVEE_shaders_ggx_refraction_lut_sh_get(void) +GPUShader *EEVEE_shaders_ggx_refraction_lut_sh_get() { if (e_data.ggx_refraction_lut_sh == nullptr) { e_data.ggx_refraction_lut_sh = DRW_shader_create_from_info_name("eevee_legacy_ggx_lut_btdf"); @@ -517,7 +517,7 @@ GPUShader *EEVEE_shaders_ggx_refraction_lut_sh_get(void) /** \name Mist * \{ */ -GPUShader *EEVEE_shaders_effect_mist_sh_get(void) +GPUShader *EEVEE_shaders_effect_mist_sh_get() { if (e_data.mist_sh == nullptr) { e_data.mist_sh = DRW_shader_create_from_info_name("eevee_legacy_effect_mist_FIRST_PASS"); @@ -532,7 +532,7 @@ GPUShader *EEVEE_shaders_effect_mist_sh_get(void) * \{ */ #define TILE_SIZE_STR "#define EEVEE_VELOCITY_TILE_SIZE " STRINGIFY(EEVEE_VELOCITY_TILE_SIZE) "\n" -GPUShader *EEVEE_shaders_effect_motion_blur_sh_get(void) +GPUShader *EEVEE_shaders_effect_motion_blur_sh_get() { if (e_data.motion_blur_sh == nullptr) { e_data.motion_blur_sh = DRW_shader_create_from_info_name("eevee_legacy_effect_motion_blur"); @@ -540,7 +540,7 @@ GPUShader *EEVEE_shaders_effect_motion_blur_sh_get(void) return e_data.motion_blur_sh; } -GPUShader *EEVEE_shaders_effect_motion_blur_object_sh_get(void) +GPUShader *EEVEE_shaders_effect_motion_blur_object_sh_get() { if (e_data.motion_blur_object_sh == nullptr) { e_data.motion_blur_object_sh = DRW_shader_create_from_info_name( @@ -549,7 +549,7 @@ GPUShader *EEVEE_shaders_effect_motion_blur_object_sh_get(void) return e_data.motion_blur_object_sh; } -GPUShader *EEVEE_shaders_effect_motion_blur_hair_sh_get(void) +GPUShader *EEVEE_shaders_effect_motion_blur_hair_sh_get() { if (e_data.motion_blur_hair_sh == nullptr) { e_data.motion_blur_hair_sh = DRW_shader_create_from_info_name( @@ -558,7 +558,7 @@ GPUShader *EEVEE_shaders_effect_motion_blur_hair_sh_get(void) return e_data.motion_blur_hair_sh; } -GPUShader *EEVEE_shaders_effect_motion_blur_velocity_tiles_sh_get(void) +GPUShader *EEVEE_shaders_effect_motion_blur_velocity_tiles_sh_get() { if (e_data.velocity_tiles_sh == nullptr) { e_data.velocity_tiles_sh = DRW_shader_create_from_info_name( @@ -567,7 +567,7 @@ GPUShader *EEVEE_shaders_effect_motion_blur_velocity_tiles_sh_get(void) return e_data.velocity_tiles_sh; } -GPUShader *EEVEE_shaders_effect_motion_blur_velocity_tiles_expand_sh_get(void) +GPUShader *EEVEE_shaders_effect_motion_blur_velocity_tiles_expand_sh_get() { if (e_data.velocity_tiles_expand_sh == nullptr) { e_data.velocity_tiles_expand_sh = DRW_shader_create_from_info_name( @@ -584,7 +584,7 @@ GPUShader *EEVEE_shaders_effect_motion_blur_velocity_tiles_expand_sh_get(void) /** \name Ambient Occlusion * \{ */ -GPUShader *EEVEE_shaders_effect_ambient_occlusion_sh_get(void) +GPUShader *EEVEE_shaders_effect_ambient_occlusion_sh_get() { if (e_data.gtao_sh == nullptr) { e_data.gtao_sh = DRW_shader_create_from_info_name("eevee_legacy_ambient_occlusion"); @@ -592,7 +592,7 @@ GPUShader *EEVEE_shaders_effect_ambient_occlusion_sh_get(void) return e_data.gtao_sh; } -GPUShader *EEVEE_shaders_effect_ambient_occlusion_debug_sh_get(void) +GPUShader *EEVEE_shaders_effect_ambient_occlusion_debug_sh_get() { if (e_data.gtao_debug_sh == nullptr) { e_data.gtao_debug_sh = DRW_shader_create_from_info_name( @@ -607,7 +607,7 @@ GPUShader *EEVEE_shaders_effect_ambient_occlusion_debug_sh_get(void) /** \name Render Passes * \{ */ -GPUShader *EEVEE_shaders_renderpasses_accumulate_sh_get(void) +GPUShader *EEVEE_shaders_renderpasses_accumulate_sh_get() { if (e_data.rpass_accumulate_sh == nullptr) { e_data.rpass_accumulate_sh = DRW_shader_create_from_info_name( @@ -616,7 +616,7 @@ GPUShader *EEVEE_shaders_renderpasses_accumulate_sh_get(void) return e_data.rpass_accumulate_sh; } -GPUShader *EEVEE_shaders_renderpasses_post_process_sh_get(void) +GPUShader *EEVEE_shaders_renderpasses_post_process_sh_get() { if (e_data.postprocess_sh == nullptr) { e_data.postprocess_sh = DRW_shader_create_from_info_name("eevee_legacy_post_process"); @@ -653,7 +653,7 @@ GPUShader *EEVEE_shaders_cryptomatte_sh_get(bool is_hair) /** \name Raytraced Reflections * \{ */ -GPUShader *EEVEE_shaders_effect_reflection_trace_sh_get(void) +GPUShader *EEVEE_shaders_effect_reflection_trace_sh_get() { if (e_data.reflection_trace == nullptr) { e_data.reflection_trace = DRW_shader_create_from_info_name( @@ -662,7 +662,7 @@ GPUShader *EEVEE_shaders_effect_reflection_trace_sh_get(void) return e_data.reflection_trace; } -GPUShader *EEVEE_shaders_effect_reflection_resolve_sh_get(void) +GPUShader *EEVEE_shaders_effect_reflection_resolve_sh_get() { if (e_data.reflection_resolve == nullptr) { e_data.reflection_resolve = DRW_shader_create_from_info_name( @@ -671,7 +671,7 @@ GPUShader *EEVEE_shaders_effect_reflection_resolve_sh_get(void) return e_data.reflection_resolve; } -GPUShader *EEVEE_shaders_effect_reflection_resolve_probe_sh_get(void) +GPUShader *EEVEE_shaders_effect_reflection_resolve_probe_sh_get() { if (e_data.reflection_resolve_probe == nullptr) { e_data.reflection_resolve_probe = DRW_shader_create_from_info_name( @@ -680,7 +680,7 @@ GPUShader *EEVEE_shaders_effect_reflection_resolve_probe_sh_get(void) return e_data.reflection_resolve_probe; } -GPUShader *EEVEE_shaders_effect_reflection_resolve_refl_sh_get(void) +GPUShader *EEVEE_shaders_effect_reflection_resolve_refl_sh_get() { if (e_data.reflection_resolve_raytrace == nullptr) { e_data.reflection_resolve_raytrace = DRW_shader_create_from_info_name( @@ -806,7 +806,7 @@ GPUShader *EEVEE_shaders_volumes_accum_sh_get() /** \} */ -GPUShader *EEVEE_shaders_velocity_resolve_sh_get(void) +GPUShader *EEVEE_shaders_velocity_resolve_sh_get() { if (e_data.velocity_resolve_sh == nullptr) { e_data.velocity_resolve_sh = DRW_shader_create_from_info_name("eevee_legacy_velocity_resolve"); @@ -814,7 +814,7 @@ GPUShader *EEVEE_shaders_velocity_resolve_sh_get(void) return e_data.velocity_resolve_sh; } -GPUShader *EEVEE_shaders_update_noise_sh_get(void) +GPUShader *EEVEE_shaders_update_noise_sh_get() { if (e_data.update_noise_sh == nullptr) { e_data.update_noise_sh = DRW_shader_create_from_info_name("eevee_legacy_update_noise"); @@ -891,7 +891,7 @@ GPUShader *EEVEE_shaders_bloom_resolve_get(bool high_quality) /** \name Depth of field * \{ */ -GPUShader *EEVEE_shaders_depth_of_field_bokeh_get(void) +GPUShader *EEVEE_shaders_depth_of_field_bokeh_get() { if (e_data.dof_bokeh_sh == nullptr) { e_data.dof_bokeh_sh = DRW_shader_create_from_info_name("eevee_legacy_depth_of_field_bokeh"); @@ -899,7 +899,7 @@ GPUShader *EEVEE_shaders_depth_of_field_bokeh_get(void) return e_data.dof_bokeh_sh; } -GPUShader *EEVEE_shaders_depth_of_field_setup_get(void) +GPUShader *EEVEE_shaders_depth_of_field_setup_get() { if (e_data.dof_setup_sh == nullptr) { e_data.dof_setup_sh = DRW_shader_create_from_info_name("eevee_legacy_depth_of_field_setup"); @@ -907,7 +907,7 @@ GPUShader *EEVEE_shaders_depth_of_field_setup_get(void) return e_data.dof_setup_sh; } -GPUShader *EEVEE_shaders_depth_of_field_flatten_tiles_get(void) +GPUShader *EEVEE_shaders_depth_of_field_flatten_tiles_get() { if (e_data.dof_flatten_tiles_sh == nullptr) { e_data.dof_flatten_tiles_sh = DRW_shader_create_from_info_name( @@ -928,7 +928,7 @@ GPUShader *EEVEE_shaders_depth_of_field_dilate_tiles_get(bool b_pass) return e_data.dof_dilate_tiles_sh[pass]; } -GPUShader *EEVEE_shaders_depth_of_field_downsample_get(void) +GPUShader *EEVEE_shaders_depth_of_field_downsample_get() { if (e_data.dof_downsample_sh == nullptr) { e_data.dof_downsample_sh = DRW_shader_create_from_info_name( @@ -980,7 +980,7 @@ GPUShader *EEVEE_shaders_depth_of_field_gather_get(EEVEE_DofGatherPass pass, boo return e_data.dof_gather_sh[pass][use_bokeh_tx]; } -GPUShader *EEVEE_shaders_depth_of_field_filter_get(void) +GPUShader *EEVEE_shaders_depth_of_field_filter_get() { if (e_data.dof_filter_sh == nullptr) { e_data.dof_filter_sh = DRW_shader_create_from_info_name("eevee_legacy_depth_of_field_filter"); @@ -1035,7 +1035,7 @@ GPUShader *EEVEE_shaders_depth_of_field_resolve_get(bool b_use_bokeh_tx, bool b_ /** \} */ -Material *EEVEE_material_default_diffuse_get(void) +Material *EEVEE_material_default_diffuse_get() { if (!e_data.diffuse_mat) { Material *ma = static_cast(BKE_id_new_nomain(ID_MA, "EEVEEE default diffuse")); @@ -1062,7 +1062,7 @@ Material *EEVEE_material_default_diffuse_get(void) return e_data.diffuse_mat; } -Material *EEVEE_material_default_glossy_get(void) +Material *EEVEE_material_default_glossy_get() { if (!e_data.glossy_mat) { Material *ma = static_cast(BKE_id_new_nomain(ID_MA, "EEVEEE default metal")); @@ -1091,7 +1091,7 @@ Material *EEVEE_material_default_glossy_get(void) return e_data.glossy_mat; } -Material *EEVEE_material_default_error_get(void) +Material *EEVEE_material_default_error_get() { if (!e_data.error_mat) { Material *ma = static_cast(BKE_id_new_nomain(ID_MA, "EEVEEE default error")); @@ -1172,7 +1172,7 @@ bNodeTree *EEVEE_shader_default_world_nodetree(World *wo) return e_data.world.ntree; } -World *EEVEE_world_default_get(void) +World *EEVEE_world_default_get() { if (e_data.default_world == nullptr) { e_data.default_world = static_cast(BKE_id_new_nomain(ID_WO, "EEVEEE default world")); @@ -1447,7 +1447,7 @@ GPUMaterial *EEVEE_material_get( return mat; } -void EEVEE_shaders_free(void) +void EEVEE_shaders_free() { MEM_SAFE_FREE(e_data.surface_prepass_frag); MEM_SAFE_FREE(e_data.surface_lit_frag); diff --git a/source/blender/draw/engines/overlay/overlay_shader.cc b/source/blender/draw/engines/overlay/overlay_shader.cc index 7c81eb2d994..74124533f56 100644 --- a/source/blender/draw/engines/overlay/overlay_shader.cc +++ b/source/blender/draw/engines/overlay/overlay_shader.cc @@ -118,7 +118,7 @@ static struct { OVERLAY_Shaders sh_data[GPU_SHADER_CFG_LEN]; } e_data = {{{nullptr}}}; -GPUShader *OVERLAY_shader_antialiasing(void) +GPUShader *OVERLAY_shader_antialiasing() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->antialiasing) { @@ -127,7 +127,7 @@ GPUShader *OVERLAY_shader_antialiasing(void) return sh_data->antialiasing; } -GPUShader *OVERLAY_shader_background(void) +GPUShader *OVERLAY_shader_background() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->background) { @@ -136,7 +136,7 @@ GPUShader *OVERLAY_shader_background(void) return sh_data->background; } -GPUShader *OVERLAY_shader_clipbound(void) +GPUShader *OVERLAY_shader_clipbound() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->clipbound) { @@ -145,7 +145,7 @@ GPUShader *OVERLAY_shader_clipbound(void) return sh_data->clipbound; } -GPUShader *OVERLAY_shader_depth_only(void) +GPUShader *OVERLAY_shader_depth_only() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -157,7 +157,7 @@ GPUShader *OVERLAY_shader_depth_only(void) return sh_data->depth_only; } -GPUShader *OVERLAY_shader_edit_mesh_depth(void) +GPUShader *OVERLAY_shader_edit_mesh_depth() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -169,7 +169,7 @@ GPUShader *OVERLAY_shader_edit_mesh_depth(void) return sh_data->edit_mesh_depth; } -GPUShader *OVERLAY_shader_edit_mesh_vert(void) +GPUShader *OVERLAY_shader_edit_mesh_vert() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -230,7 +230,7 @@ GPUShader *OVERLAY_shader_armature_shape(bool use_outline) return use_outline ? sh_data->armature_shape_outline : sh_data->armature_shape_solid; } -GPUShader *OVERLAY_shader_armature_shape_wire(void) +GPUShader *OVERLAY_shader_armature_shape_wire() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -260,7 +260,7 @@ GPUShader *OVERLAY_shader_armature_envelope(bool use_outline) return use_outline ? sh_data->armature_envelope_outline : sh_data->armature_envelope_solid; } -GPUShader *OVERLAY_shader_armature_stick(void) +GPUShader *OVERLAY_shader_armature_stick() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -272,7 +272,7 @@ GPUShader *OVERLAY_shader_armature_stick(void) return sh_data->armature_stick; } -GPUShader *OVERLAY_shader_armature_degrees_of_freedom_wire(void) +GPUShader *OVERLAY_shader_armature_degrees_of_freedom_wire() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -284,7 +284,7 @@ GPUShader *OVERLAY_shader_armature_degrees_of_freedom_wire(void) return sh_data->armature_dof_wire; } -GPUShader *OVERLAY_shader_armature_degrees_of_freedom_solid(void) +GPUShader *OVERLAY_shader_armature_degrees_of_freedom_solid() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -296,7 +296,7 @@ GPUShader *OVERLAY_shader_armature_degrees_of_freedom_solid(void) return sh_data->armature_dof_solid; } -GPUShader *OVERLAY_shader_armature_wire(void) +GPUShader *OVERLAY_shader_armature_wire() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -308,7 +308,7 @@ GPUShader *OVERLAY_shader_armature_wire(void) return sh_data->armature_wire; } -GPUShader *OVERLAY_shader_edit_curve_handle(void) +GPUShader *OVERLAY_shader_edit_curve_handle() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -320,7 +320,7 @@ GPUShader *OVERLAY_shader_edit_curve_handle(void) return sh_data->edit_curve_handle; } -GPUShader *OVERLAY_shader_edit_curve_point(void) +GPUShader *OVERLAY_shader_edit_curve_point() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -332,7 +332,7 @@ GPUShader *OVERLAY_shader_edit_curve_point(void) return sh_data->edit_curve_point; } -GPUShader *OVERLAY_shader_edit_curve_wire(void) +GPUShader *OVERLAY_shader_edit_curve_wire() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -344,7 +344,7 @@ GPUShader *OVERLAY_shader_edit_curve_wire(void) return sh_data->edit_curve_wire; } -GPUShader *OVERLAY_shader_edit_gpencil_guide_point(void) +GPUShader *OVERLAY_shader_edit_gpencil_guide_point() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -356,7 +356,7 @@ GPUShader *OVERLAY_shader_edit_gpencil_guide_point(void) return sh_data->edit_gpencil_guide_point; } -GPUShader *OVERLAY_shader_edit_gpencil_point(void) +GPUShader *OVERLAY_shader_edit_gpencil_point() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -368,7 +368,7 @@ GPUShader *OVERLAY_shader_edit_gpencil_point(void) return sh_data->edit_gpencil_point; } -GPUShader *OVERLAY_shader_edit_gpencil_wire(void) +GPUShader *OVERLAY_shader_edit_gpencil_wire() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -380,7 +380,7 @@ GPUShader *OVERLAY_shader_edit_gpencil_wire(void) return sh_data->edit_gpencil_wire; } -GPUShader *OVERLAY_shader_edit_lattice_point(void) +GPUShader *OVERLAY_shader_edit_lattice_point() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -392,7 +392,7 @@ GPUShader *OVERLAY_shader_edit_lattice_point(void) return sh_data->edit_lattice_point; } -GPUShader *OVERLAY_shader_edit_lattice_wire(void) +GPUShader *OVERLAY_shader_edit_lattice_wire() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -404,7 +404,7 @@ GPUShader *OVERLAY_shader_edit_lattice_wire(void) return sh_data->edit_lattice_wire; } -GPUShader *OVERLAY_shader_edit_mesh_face(void) +GPUShader *OVERLAY_shader_edit_mesh_face() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -416,7 +416,7 @@ GPUShader *OVERLAY_shader_edit_mesh_face(void) return sh_data->edit_mesh_face; } -GPUShader *OVERLAY_shader_edit_mesh_facedot(void) +GPUShader *OVERLAY_shader_edit_mesh_facedot() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -428,7 +428,7 @@ GPUShader *OVERLAY_shader_edit_mesh_facedot(void) return sh_data->edit_mesh_facedot; } -GPUShader *OVERLAY_shader_edit_mesh_normal(void) +GPUShader *OVERLAY_shader_edit_mesh_normal() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -440,7 +440,7 @@ GPUShader *OVERLAY_shader_edit_mesh_normal(void) return sh_data->edit_mesh_normals; } -GPUShader *OVERLAY_shader_edit_mesh_analysis(void) +GPUShader *OVERLAY_shader_edit_mesh_analysis() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -452,7 +452,7 @@ GPUShader *OVERLAY_shader_edit_mesh_analysis(void) return sh_data->edit_mesh_analysis; } -GPUShader *OVERLAY_shader_edit_mesh_skin_root(void) +GPUShader *OVERLAY_shader_edit_mesh_skin_root() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -464,7 +464,7 @@ GPUShader *OVERLAY_shader_edit_mesh_skin_root(void) return sh_data->edit_mesh_skin_root; } -GPUShader *OVERLAY_shader_edit_particle_strand(void) +GPUShader *OVERLAY_shader_edit_particle_strand() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -476,7 +476,7 @@ GPUShader *OVERLAY_shader_edit_particle_strand(void) return sh_data->edit_particle_strand; } -GPUShader *OVERLAY_shader_edit_particle_point(void) +GPUShader *OVERLAY_shader_edit_particle_point() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -502,7 +502,7 @@ GPUShader *OVERLAY_shader_extra(bool is_select) return *sh; } -GPUShader *OVERLAY_shader_extra_grid(void) +GPUShader *OVERLAY_shader_extra_grid() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -514,7 +514,7 @@ GPUShader *OVERLAY_shader_extra_grid(void) return sh_data->extra_lightprobe_grid; } -GPUShader *OVERLAY_shader_extra_groundline(void) +GPUShader *OVERLAY_shader_extra_groundline() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -555,7 +555,7 @@ GPUShader *OVERLAY_shader_extra_wire(bool use_object, bool is_select) return *sh; } -GPUShader *OVERLAY_shader_extra_loose_point(void) +GPUShader *OVERLAY_shader_extra_loose_point() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -567,7 +567,7 @@ GPUShader *OVERLAY_shader_extra_loose_point(void) return sh_data->extra_loose_point; } -GPUShader *OVERLAY_shader_extra_point(void) +GPUShader *OVERLAY_shader_extra_point() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -579,7 +579,7 @@ GPUShader *OVERLAY_shader_extra_point(void) return sh_data->extra_point; } -GPUShader *OVERLAY_shader_facing(void) +GPUShader *OVERLAY_shader_facing() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -591,7 +591,7 @@ GPUShader *OVERLAY_shader_facing(void) return sh_data->facing; } -GPUShader *OVERLAY_shader_gpencil_canvas(void) +GPUShader *OVERLAY_shader_gpencil_canvas() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -604,7 +604,7 @@ GPUShader *OVERLAY_shader_gpencil_canvas(void) return sh_data->gpencil_canvas; } -GPUShader *OVERLAY_shader_grid(void) +GPUShader *OVERLAY_shader_grid() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->grid) { @@ -613,7 +613,7 @@ GPUShader *OVERLAY_shader_grid(void) return sh_data->grid; } -GPUShader *OVERLAY_shader_grid_background(void) +GPUShader *OVERLAY_shader_grid_background() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->grid_background) { @@ -622,7 +622,7 @@ GPUShader *OVERLAY_shader_grid_background(void) return sh_data->grid_background; } -GPUShader *OVERLAY_shader_grid_image(void) +GPUShader *OVERLAY_shader_grid_image() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->grid_image) { @@ -631,7 +631,7 @@ GPUShader *OVERLAY_shader_grid_image(void) return sh_data->grid_image; } -GPUShader *OVERLAY_shader_edit_uv_stencil_image(void) +GPUShader *OVERLAY_shader_edit_uv_stencil_image() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->edit_uv_stencil_image) { @@ -641,7 +641,7 @@ GPUShader *OVERLAY_shader_edit_uv_stencil_image(void) return sh_data->edit_uv_stencil_image; } -GPUShader *OVERLAY_shader_edit_uv_mask_image(void) +GPUShader *OVERLAY_shader_edit_uv_mask_image() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->edit_uv_mask_image) { @@ -650,7 +650,7 @@ GPUShader *OVERLAY_shader_edit_uv_mask_image(void) return sh_data->edit_uv_mask_image; } -GPUShader *OVERLAY_shader_image(void) +GPUShader *OVERLAY_shader_image() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -662,7 +662,7 @@ GPUShader *OVERLAY_shader_image(void) return sh_data->image; } -GPUShader *OVERLAY_shader_motion_path_line(void) +GPUShader *OVERLAY_shader_motion_path_line() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -674,7 +674,7 @@ GPUShader *OVERLAY_shader_motion_path_line(void) return sh_data->motion_path_line; } -GPUShader *OVERLAY_shader_motion_path_vert(void) +GPUShader *OVERLAY_shader_motion_path_vert() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -715,7 +715,7 @@ GPUShader *OVERLAY_shader_outline_prepass_curves() return sh_data->outline_prepass_curves; } -GPUShader *OVERLAY_shader_outline_prepass_gpencil(void) +GPUShader *OVERLAY_shader_outline_prepass_gpencil() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -727,7 +727,7 @@ GPUShader *OVERLAY_shader_outline_prepass_gpencil(void) return sh_data->outline_prepass_gpencil; } -GPUShader *OVERLAY_shader_outline_prepass_pointcloud(void) +GPUShader *OVERLAY_shader_outline_prepass_pointcloud() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -740,7 +740,7 @@ GPUShader *OVERLAY_shader_outline_prepass_pointcloud(void) return sh_data->outline_prepass_pointcloud; } -GPUShader *OVERLAY_shader_outline_detect(void) +GPUShader *OVERLAY_shader_outline_detect() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->outline_detect) { @@ -749,7 +749,7 @@ GPUShader *OVERLAY_shader_outline_detect(void) return sh_data->outline_detect; } -GPUShader *OVERLAY_shader_paint_face(void) +GPUShader *OVERLAY_shader_paint_face() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -761,7 +761,7 @@ GPUShader *OVERLAY_shader_paint_face(void) return sh_data->paint_face; } -GPUShader *OVERLAY_shader_paint_point(void) +GPUShader *OVERLAY_shader_paint_point() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -773,7 +773,7 @@ GPUShader *OVERLAY_shader_paint_point(void) return sh_data->paint_point; } -GPUShader *OVERLAY_shader_paint_texture(void) +GPUShader *OVERLAY_shader_paint_texture() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -785,7 +785,7 @@ GPUShader *OVERLAY_shader_paint_texture(void) return sh_data->paint_texture; } -GPUShader *OVERLAY_shader_paint_vertcol(void) +GPUShader *OVERLAY_shader_paint_vertcol() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -813,7 +813,7 @@ GPUShader *OVERLAY_shader_paint_weight(const bool shading) return sh_data->paint_weight[index]; } -GPUShader *OVERLAY_shader_paint_wire(void) +GPUShader *OVERLAY_shader_paint_wire() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -825,7 +825,7 @@ GPUShader *OVERLAY_shader_paint_wire(void) return sh_data->paint_wire; } -GPUShader *OVERLAY_shader_particle_dot(void) +GPUShader *OVERLAY_shader_particle_dot() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -837,7 +837,7 @@ GPUShader *OVERLAY_shader_particle_dot(void) return sh_data->particle_dot; } -GPUShader *OVERLAY_shader_particle_shape(void) +GPUShader *OVERLAY_shader_particle_shape() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -849,7 +849,7 @@ GPUShader *OVERLAY_shader_particle_shape(void) return sh_data->particle_shape; } -GPUShader *OVERLAY_shader_sculpt_mask(void) +GPUShader *OVERLAY_shader_sculpt_mask() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -861,7 +861,7 @@ GPUShader *OVERLAY_shader_sculpt_mask(void) return sh_data->sculpt_mask; } -GPUShader *OVERLAY_shader_sculpt_curves_selection(void) +GPUShader *OVERLAY_shader_sculpt_curves_selection() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -873,7 +873,7 @@ GPUShader *OVERLAY_shader_sculpt_curves_selection(void) return sh_data->sculpt_curves_selection; } -GPUShader *OVERLAY_shader_sculpt_curves_cage(void) +GPUShader *OVERLAY_shader_sculpt_curves_cage() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -885,7 +885,7 @@ GPUShader *OVERLAY_shader_sculpt_curves_cage(void) return sh_data->sculpt_curves_cage; } -GPUShader *OVERLAY_shader_viewer_attribute_mesh(void) +GPUShader *OVERLAY_shader_viewer_attribute_mesh() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -897,7 +897,7 @@ GPUShader *OVERLAY_shader_viewer_attribute_mesh(void) return sh_data->viewer_attribute_mesh; } -GPUShader *OVERLAY_shader_viewer_attribute_pointcloud(void) +GPUShader *OVERLAY_shader_viewer_attribute_pointcloud() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -910,7 +910,7 @@ GPUShader *OVERLAY_shader_viewer_attribute_pointcloud(void) return sh_data->viewer_attribute_pointcloud; } -GPUShader *OVERLAY_shader_viewer_attribute_curve(void) +GPUShader *OVERLAY_shader_viewer_attribute_curve() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -922,7 +922,7 @@ GPUShader *OVERLAY_shader_viewer_attribute_curve(void) return sh_data->viewer_attribute_curve; } -GPUShader *OVERLAY_shader_viewer_attribute_curves(void) +GPUShader *OVERLAY_shader_viewer_attribute_curves() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -934,7 +934,7 @@ GPUShader *OVERLAY_shader_viewer_attribute_curves(void) return sh_data->viewer_attribute_curves; } -GPUShader *OVERLAY_shader_uniform_color(void) +GPUShader *OVERLAY_shader_uniform_color() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -1007,7 +1007,7 @@ GPUShader *OVERLAY_shader_volume_gridlines(bool color_with_flags, bool color_ran return sh_data->volume_gridlines_sh; } -GPUShader *OVERLAY_shader_wireframe_select(void) +GPUShader *OVERLAY_shader_wireframe_select() { const DRWContextState *draw_ctx = DRW_context_state_get(); OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg]; @@ -1034,7 +1034,7 @@ GPUShader *OVERLAY_shader_wireframe(bool custom_bias) return sh_data->wireframe[custom_bias]; } -GPUShader *OVERLAY_shader_xray_fade(void) +GPUShader *OVERLAY_shader_xray_fade() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->xray_fade) { @@ -1047,7 +1047,7 @@ GPUShader *OVERLAY_shader_xray_fade(void) /** \name Edit UV shaders * \{ */ -GPUShader *OVERLAY_shader_edit_uv_edges_get(void) +GPUShader *OVERLAY_shader_edit_uv_edges_get() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->edit_uv_edges) { @@ -1056,7 +1056,7 @@ GPUShader *OVERLAY_shader_edit_uv_edges_get(void) return sh_data->edit_uv_edges; } -GPUShader *OVERLAY_shader_edit_uv_edges_for_edge_select_get(void) +GPUShader *OVERLAY_shader_edit_uv_edges_for_edge_select_get() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->edit_uv_edges_for_edge_select) { @@ -1066,7 +1066,7 @@ GPUShader *OVERLAY_shader_edit_uv_edges_for_edge_select_get(void) return sh_data->edit_uv_edges_for_edge_select; } -GPUShader *OVERLAY_shader_edit_uv_face_get(void) +GPUShader *OVERLAY_shader_edit_uv_face_get() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->edit_uv_faces) { @@ -1075,7 +1075,7 @@ GPUShader *OVERLAY_shader_edit_uv_face_get(void) return sh_data->edit_uv_faces; } -GPUShader *OVERLAY_shader_edit_uv_face_dots_get(void) +GPUShader *OVERLAY_shader_edit_uv_face_dots_get() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->edit_uv_face_dots) { @@ -1084,7 +1084,7 @@ GPUShader *OVERLAY_shader_edit_uv_face_dots_get(void) return sh_data->edit_uv_face_dots; } -GPUShader *OVERLAY_shader_edit_uv_verts_get(void) +GPUShader *OVERLAY_shader_edit_uv_verts_get() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->edit_uv_verts) { @@ -1094,7 +1094,7 @@ GPUShader *OVERLAY_shader_edit_uv_verts_get(void) return sh_data->edit_uv_verts; } -GPUShader *OVERLAY_shader_edit_uv_stretching_area_get(void) +GPUShader *OVERLAY_shader_edit_uv_stretching_area_get() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->edit_uv_stretching_area) { @@ -1105,7 +1105,7 @@ GPUShader *OVERLAY_shader_edit_uv_stretching_area_get(void) return sh_data->edit_uv_stretching_area; } -GPUShader *OVERLAY_shader_edit_uv_stretching_angle_get(void) +GPUShader *OVERLAY_shader_edit_uv_stretching_angle_get() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->edit_uv_stretching_angle) { @@ -1116,7 +1116,7 @@ GPUShader *OVERLAY_shader_edit_uv_stretching_angle_get(void) return sh_data->edit_uv_stretching_angle; } -GPUShader *OVERLAY_shader_edit_uv_tiled_image_borders_get(void) +GPUShader *OVERLAY_shader_edit_uv_tiled_image_borders_get() { OVERLAY_Shaders *sh_data = &e_data.sh_data[0]; if (!sh_data->edit_uv_tiled_image_borders) { @@ -1130,7 +1130,7 @@ GPUShader *OVERLAY_shader_edit_uv_tiled_image_borders_get(void) static OVERLAY_InstanceFormats g_formats = {nullptr}; -OVERLAY_InstanceFormats *OVERLAY_shader_instance_formats_get(void) +OVERLAY_InstanceFormats *OVERLAY_shader_instance_formats_get() { DRW_shgroup_instance_format(g_formats.pos, { @@ -1198,7 +1198,7 @@ OVERLAY_InstanceFormats *OVERLAY_shader_instance_formats_get(void) return &g_formats; } -void OVERLAY_shader_free(void) +void OVERLAY_shader_free() { for (int sh_data_index = 0; sh_data_index < ARRAY_SIZE(e_data.sh_data); sh_data_index++) { OVERLAY_Shaders *sh_data = &e_data.sh_data[sh_data_index]; diff --git a/source/blender/draw/engines/workbench/workbench_engine.cc b/source/blender/draw/engines/workbench/workbench_engine.cc index e9a601ef050..fc86701d6f9 100644 --- a/source/blender/draw/engines/workbench/workbench_engine.cc +++ b/source/blender/draw/engines/workbench/workbench_engine.cc @@ -580,7 +580,7 @@ static void workbench_id_update(void *vedata, ID *id) /* RENDER */ -static bool workbench_render_framebuffers_init(void) +static bool workbench_render_framebuffers_init() { /* For image render, allocate own buffers because we don't have a viewport. */ const float2 viewport_size = DRW_viewport_size_get(); diff --git a/source/blender/draw/engines/workbench/workbench_shader.cc b/source/blender/draw/engines/workbench/workbench_shader.cc index d2247dc544e..a62c8627061 100644 --- a/source/blender/draw/engines/workbench/workbench_shader.cc +++ b/source/blender/draw/engines/workbench/workbench_shader.cc @@ -251,7 +251,7 @@ GPUShader *workbench_shader_cavity_get(bool cavity, bool curvature) return *shader; } -GPUShader *workbench_shader_outline_get(void) +GPUShader *workbench_shader_outline_get() { if (e_data.outline_sh == nullptr) { e_data.outline_sh = GPU_shader_create_from_info_name("workbench_effect_outline"); @@ -286,7 +286,7 @@ void workbench_shader_depth_of_field_get(GPUShader **prepare_sh, *resolve_sh = e_data.dof_resolve_sh; } -GPUShader *workbench_shader_antialiasing_accumulation_get(void) +GPUShader *workbench_shader_antialiasing_accumulation_get() { if (e_data.aa_accum_sh == nullptr) { e_data.aa_accum_sh = GPU_shader_create_from_info_name("workbench_taa"); @@ -331,7 +331,7 @@ GPUShader *workbench_shader_volume_get(bool slice, /** \name Cleanup * \{ */ -void workbench_shader_free(void) +void workbench_shader_free() { for (int j = 0; j < sizeof(e_data.opaque_prepass_sh_cache) / sizeof(void *); j++) { GPUShader **sh_array = &e_data.opaque_prepass_sh_cache[0][0][0]; diff --git a/source/blender/draw/intern/draw_hair.cc b/source/blender/draw/intern/draw_hair.cc index a434cf73777..94d7cc3a63b 100644 --- a/source/blender/draw/intern/draw_hair.cc +++ b/source/blender/draw/intern/draw_hair.cc @@ -73,7 +73,7 @@ static GPUShader *hair_refine_shader_get(ParticleRefineShader refinement) return DRW_shader_hair_refine_get(refinement, drw_hair_shader_type_get()); } -void DRW_hair_init(void) +void DRW_hair_init() { if (GPU_transform_feedback_support() || GPU_compute_shader_support()) { g_tf_pass = DRW_pass_create("Update Hair Pass", DRW_STATE_NO_DRAW); @@ -428,7 +428,7 @@ void DRW_hair_update() } } -void DRW_hair_free(void) +void DRW_hair_free() { GPU_VERTBUF_DISCARD_SAFE(g_dummy_vbo); MEM_delete(g_dummy_curves_info); diff --git a/source/blender/draw/intern/draw_manager_data.cc b/source/blender/draw/intern/draw_manager_data.cc index 63d61f1caa3..97bf49cf8ae 100644 --- a/source/blender/draw/intern/draw_manager_data.cc +++ b/source/blender/draw/intern/draw_manager_data.cc @@ -2317,12 +2317,12 @@ void DRW_view_update(DRWView *view, #endif } -const DRWView *DRW_view_default_get(void) +const DRWView *DRW_view_default_get() { return DST.view_default; } -void DRW_view_reset(void) +void DRW_view_reset() { DST.view_default = nullptr; DST.view_active = nullptr; diff --git a/source/blender/draw/intern/draw_manager_profiling.cc b/source/blender/draw/intern/draw_manager_profiling.cc index 18474b32ca5..1715477b4ca 100644 --- a/source/blender/draw/intern/draw_manager_profiling.cc +++ b/source/blender/draw/intern/draw_manager_profiling.cc @@ -139,7 +139,7 @@ void DRW_stats_query_start(const char *name) drw_stats_timer_start_ex(name, true); } -void DRW_stats_query_end(void) +void DRW_stats_query_end() { GPU_debug_group_end(); if (DTP.is_recording) { diff --git a/source/blender/draw/intern/draw_manager_text.cc b/source/blender/draw/intern/draw_manager_text.cc index 91e47a3deb6..3b89cc38ff0 100644 --- a/source/blender/draw/intern/draw_manager_text.cc +++ b/source/blender/draw/intern/draw_manager_text.cc @@ -59,7 +59,7 @@ struct DRWTextStore { BLI_memiter *cache_strings; }; -DRWTextStore *DRW_text_cache_create(void) +DRWTextStore *DRW_text_cache_create() { DRWTextStore *dt = MEM_cnew(__func__); dt->cache_strings = BLI_memiter_create(1 << 14); /* 16kb */ diff --git a/source/blender/draw/intern/draw_volume.cc b/source/blender/draw/intern/draw_volume.cc index 69c87f8d02e..70246d061a9 100644 --- a/source/blender/draw/intern/draw_volume.cc +++ b/source/blender/draw/intern/draw_volume.cc @@ -81,7 +81,7 @@ static void drw_volume_globals_init() memset(g_data.dummy_grid_mat, 0, sizeof(g_data.dummy_grid_mat)); } -void DRW_volume_free(void) +void DRW_volume_free() { GPU_TEXTURE_FREE_SAFE(g_data.dummy_zero); GPU_TEXTURE_FREE_SAFE(g_data.dummy_one); diff --git a/source/blender/editors/animation/anim_channels_defines.cc b/source/blender/editors/animation/anim_channels_defines.cc index 44efa27b84a..ee2965476a2 100644 --- a/source/blender/editors/animation/anim_channels_defines.cc +++ b/source/blender/editors/animation/anim_channels_defines.cc @@ -164,7 +164,7 @@ static void acf_generic_dataexpand_backdrop(bAnimContext *ac, } /* helper method to test if group colors should be drawn */ -static bool acf_show_channel_colors(void) +static bool acf_show_channel_colors() { return (U.animation_flag & USER_ANIM_SHOW_CHANNEL_GROUP_COLORS) != 0; } @@ -4083,7 +4083,7 @@ static bAnimChannelType *animchannelTypeInfo[ANIMTYPE_NUM_TYPES]; static short ACF_INIT = 1; /* when non-zero, the list needs to be updated */ /* Initialize type info definitions */ -static void ANIM_init_channel_typeinfo_data(void) +static void ANIM_init_channel_typeinfo_data() { int type = 0; @@ -4373,7 +4373,7 @@ static bool achannel_is_being_renamed(const bAnimContext *ac, return false; } -float ANIM_UI_get_keyframe_scale_factor(void) +float ANIM_UI_get_keyframe_scale_factor() { bTheme *btheme = UI_GetTheme(); const float yscale_fac = btheme->space_action.keyframe_scale_fac; @@ -4385,12 +4385,12 @@ float ANIM_UI_get_keyframe_scale_factor(void) return yscale_fac; } -float ANIM_UI_get_channel_height(void) +float ANIM_UI_get_channel_height() { return 0.8f * ANIM_UI_get_keyframe_scale_factor() * U.widget_unit; } -float ANIM_UI_get_channel_skip(void) +float ANIM_UI_get_channel_skip() { return 0.1f * U.widget_unit; } @@ -4400,7 +4400,7 @@ float ANIM_UI_get_first_channel_top(View2D *v2d) return UI_view2d_scale_get_y(v2d) * -UI_TIME_SCRUB_MARGIN_Y - ANIM_UI_get_channel_skip(); } -float ANIM_UI_get_channel_step(void) +float ANIM_UI_get_channel_step() { return ANIM_UI_get_channel_height() + ANIM_UI_get_channel_skip(); } @@ -4410,12 +4410,12 @@ float ANIM_UI_get_channels_total_height(View2D *v2d, const int item_count) return -ANIM_UI_get_first_channel_top(v2d) + ANIM_UI_get_channel_step() * (item_count + 1); } -float ANIM_UI_get_channel_name_width(void) +float ANIM_UI_get_channel_name_width() { return 10 * U.widget_unit; } -float ANIM_UI_get_channel_button_width(void) +float ANIM_UI_get_channel_button_width() { return 0.8f * U.widget_unit; } diff --git a/source/blender/editors/animation/keyframes_draw.cc b/source/blender/editors/animation/keyframes_draw.cc index 871642c8d10..7319b8d580e 100644 --- a/source/blender/editors/animation/keyframes_draw.cc +++ b/source/blender/editors/animation/keyframes_draw.cc @@ -476,7 +476,7 @@ struct AnimKeylistDrawList { ListBase /*AnimKeylistDrawListElem*/ channels; }; -AnimKeylistDrawList *ED_keylist_draw_list_create(void) +AnimKeylistDrawList *ED_keylist_draw_list_create() { return static_cast(MEM_callocN(sizeof(AnimKeylistDrawList), __func__)); } diff --git a/source/blender/editors/geometry/geometry_ops.cc b/source/blender/editors/geometry/geometry_ops.cc index 43b5b73d6bb..46bc4e14d3f 100644 --- a/source/blender/editors/geometry/geometry_ops.cc +++ b/source/blender/editors/geometry/geometry_ops.cc @@ -14,7 +14,7 @@ /**************************** registration **********************************/ -void ED_operatortypes_geometry(void) +void ED_operatortypes_geometry() { using namespace blender::ed::geometry; diff --git a/source/blender/editors/gpencil_legacy/gpencil_undo.cc b/source/blender/editors/gpencil_legacy/gpencil_undo.cc index 5d2f4f87d5b..4449bed6c82 100644 --- a/source/blender/editors/gpencil_legacy/gpencil_undo.cc +++ b/source/blender/editors/gpencil_legacy/gpencil_undo.cc @@ -42,7 +42,7 @@ struct bGPundonode { static ListBase undo_nodes = {nullptr, nullptr}; static bGPundonode *cur_node = nullptr; -int ED_gpencil_session_active(void) +int ED_gpencil_session_active() { return (BLI_listbase_is_empty(&undo_nodes) == false); } @@ -162,7 +162,7 @@ void gpencil_undo_push(bGPdata *gpd) BLI_addtail(&undo_nodes, undo_node); } -void gpencil_undo_finish(void) +void gpencil_undo_finish() { bGPundonode *undo_node = static_cast(undo_nodes.first); diff --git a/source/blender/editors/grease_pencil/intern/grease_pencil_layers.cc b/source/blender/editors/grease_pencil/intern/grease_pencil_layers.cc index 5bd4a49b2ff..4417ec54cde 100644 --- a/source/blender/editors/grease_pencil/intern/grease_pencil_layers.cc +++ b/source/blender/editors/grease_pencil/intern/grease_pencil_layers.cc @@ -241,7 +241,7 @@ static void GREASE_PENCIL_OT_layer_group_add(wmOperatorType *ot) } // namespace blender::ed::greasepencil -void ED_operatortypes_grease_pencil_layers(void) +void ED_operatortypes_grease_pencil_layers() { using namespace blender::ed::greasepencil; WM_operatortype_append(GREASE_PENCIL_OT_layer_add); diff --git a/source/blender/editors/grease_pencil/intern/grease_pencil_ops.cc b/source/blender/editors/grease_pencil/intern/grease_pencil_ops.cc index c877a6598c7..72f5acc0065 100644 --- a/source/blender/editors/grease_pencil/intern/grease_pencil_ops.cc +++ b/source/blender/editors/grease_pencil/intern/grease_pencil_ops.cc @@ -8,7 +8,7 @@ #include "ED_grease_pencil.h" -void ED_operatortypes_grease_pencil(void) +void ED_operatortypes_grease_pencil() { ED_operatortypes_grease_pencil_draw(); ED_operatortypes_grease_pencil_layers(); diff --git a/source/blender/editors/grease_pencil/intern/grease_pencil_select.cc b/source/blender/editors/grease_pencil/intern/grease_pencil_select.cc index 687436a688a..cd99cb0efc7 100644 --- a/source/blender/editors/grease_pencil/intern/grease_pencil_select.cc +++ b/source/blender/editors/grease_pencil/intern/grease_pencil_select.cc @@ -324,7 +324,7 @@ eAttrDomain ED_grease_pencil_selection_domain_get(bContext *C) return ATTR_DOMAIN_POINT; } -void ED_operatortypes_grease_pencil_select(void) +void ED_operatortypes_grease_pencil_select() { using namespace blender::ed::greasepencil; WM_operatortype_append(GREASE_PENCIL_OT_select_all); diff --git a/source/blender/editors/interface/interface.cc b/source/blender/editors/interface/interface.cc index 00083e5a563..3687450e047 100644 --- a/source/blender/editors/interface/interface.cc +++ b/source/blender/editors/interface/interface.cc @@ -5011,13 +5011,13 @@ int UI_autocomplete_end(AutoComplete *autocpl, char *autoname) #define PREVIEW_TILE_PAD (0.15f * UI_UNIT_X) -int UI_preview_tile_size_x(void) +int UI_preview_tile_size_x() { const float pad = PREVIEW_TILE_PAD; return round_fl_to_int((96.0f / 20.0f) * UI_UNIT_X + 2.0f * pad); } -int UI_preview_tile_size_y(void) +int UI_preview_tile_size_y() { const uiStyle *style = UI_style_get(); const float font_height = style->widget.points * UI_SCALE_FAC; @@ -5027,7 +5027,7 @@ int UI_preview_tile_size_y(void) return round_fl_to_int(UI_preview_tile_size_y_no_label() + font_height + pad); } -int UI_preview_tile_size_y_no_label(void) +int UI_preview_tile_size_y_no_label() { const float pad = PREVIEW_TILE_PAD; return round_fl_to_int((96.0f / 20.0f) * UI_UNIT_Y + 2.0f * pad); @@ -6848,29 +6848,29 @@ void UI_but_extra_icon_string_info_get(bContext *C, uiButExtraOpIcon *extra_icon /* Program Init/Exit */ -void UI_init(void) +void UI_init() { ui_resources_init(); } -void UI_init_userdef(void) +void UI_init_userdef() { /* Initialize UI variables from values set in the preferences. */ uiStyleInit(); } -void UI_reinit_font(void) +void UI_reinit_font() { uiStyleInit(); } -void UI_exit(void) +void UI_exit() { ui_resources_free(); ui_but_clipboard_free(); } -void UI_interface_tag_script_reload(void) +void UI_interface_tag_script_reload() { ui_interface_tag_script_reload_queries(); } diff --git a/source/blender/editors/interface/interface_draw.cc b/source/blender/editors/interface/interface_draw.cc index 519d88a6e39..d6bcb175ae7 100644 --- a/source/blender/editors/interface/interface_draw.cc +++ b/source/blender/editors/interface/interface_draw.cc @@ -61,7 +61,7 @@ void UI_draw_roundbox_corner_set(int type) } #if 0 /* unused */ -int UI_draw_roundbox_corner_get(void) +int UI_draw_roundbox_corner_get() { return roundboxtype; } diff --git a/source/blender/editors/interface/interface_ops.cc b/source/blender/editors/interface/interface_ops.cc index 92e8ceb2dd0..21841735a39 100644 --- a/source/blender/editors/interface/interface_ops.cc +++ b/source/blender/editors/interface/interface_ops.cc @@ -1658,7 +1658,7 @@ struct uiEditSourceButStore { /* should only ever be set while the edit source operator is running */ static uiEditSourceStore *ui_editsource_info = nullptr; -bool UI_editsource_enable_check(void) +bool UI_editsource_enable_check() { return (ui_editsource_info != nullptr); } @@ -2548,7 +2548,7 @@ static void UI_OT_drop_material(wmOperatorType *ot) /** \name Operator & Keymap Registration * \{ */ -void ED_operatortypes_ui(void) +void ED_operatortypes_ui() { WM_operatortype_append(UI_OT_copy_data_path_button); WM_operatortype_append(UI_OT_copy_as_driver_button); diff --git a/source/blender/editors/interface/interface_style.cc b/source/blender/editors/interface/interface_style.cc index 6b5a54e8455..5b94e2e2962 100644 --- a/source/blender/editors/interface/interface_style.cc +++ b/source/blender/editors/interface/interface_style.cc @@ -303,7 +303,7 @@ void UI_fontstyle_draw_simple_backdrop(const uiFontStyle *fs, /* ************** helpers ************************ */ -const uiStyle *UI_style_get(void) +const uiStyle *UI_style_get() { #if 0 uiStyle *style = nullptr; @@ -315,7 +315,7 @@ const uiStyle *UI_style_get(void) #endif } -const uiStyle *UI_style_get_dpi(void) +const uiStyle *UI_style_get_dpi() { const uiStyle *style = UI_style_get(); static uiStyle _style; diff --git a/source/blender/editors/interface/view2d.cc b/source/blender/editors/interface/view2d.cc index ae35b59b1f1..ac16312ad32 100644 --- a/source/blender/editors/interface/view2d.cc +++ b/source/blender/editors/interface/view2d.cc @@ -1025,7 +1025,7 @@ void UI_view2d_totRect_set(View2D *v2d, int width, int height) view2d_totRect_set_resize(v2d, width, height, false); } -void UI_view2d_zoom_cache_reset(void) +void UI_view2d_zoom_cache_reset() { /* TODO(sergey): This way we avoid threading conflict with sequencer rendering * text strip. But ideally we want to make glyph cache to be fully safe diff --git a/source/blender/editors/interface/view2d_ops.cc b/source/blender/editors/interface/view2d_ops.cc index 2103d2d350f..69ad8865597 100644 --- a/source/blender/editors/interface/view2d_ops.cc +++ b/source/blender/editors/interface/view2d_ops.cc @@ -2257,7 +2257,7 @@ static void VIEW2D_OT_reset(wmOperatorType *ot) /** \name Registration * \{ */ -void ED_operatortypes_view2d(void) +void ED_operatortypes_view2d() { WM_operatortype_append(VIEW2D_OT_pan); WM_operatortype_append(VIEW2D_OT_edge_pan); diff --git a/source/blender/editors/mask/mask_edit.cc b/source/blender/editors/mask/mask_edit.cc index 5a94bebed72..47cb25f543d 100644 --- a/source/blender/editors/mask/mask_edit.cc +++ b/source/blender/editors/mask/mask_edit.cc @@ -97,7 +97,7 @@ bool ED_maskedit_mask_visible_splines_poll(bContext *C) /** \name Registration * \{ */ -void ED_operatortypes_mask(void) +void ED_operatortypes_mask() { WM_operatortype_append(MASK_OT_new); @@ -167,7 +167,7 @@ void ED_keymap_mask(wmKeyConfig *keyconf) keymap->poll = ED_maskedit_poll; } -void ED_operatormacros_mask(void) +void ED_operatormacros_mask() { wmOperatorType *ot; wmOperatorTypeMacro *otmacro; diff --git a/source/blender/editors/screen/area.cc b/source/blender/editors/screen/area.cc index 78a6c300818..ddfb0d36ce1 100644 --- a/source/blender/editors/screen/area.cc +++ b/source/blender/editors/screen/area.cc @@ -3423,13 +3423,13 @@ void ED_region_header_init(ARegion *region) UI_view2d_region_reinit(®ion->v2d, V2D_COMMONVIEW_HEADER, region->winx, region->winy); } -int ED_area_headersize(void) +int ED_area_headersize() { /* Accommodate widget and padding. */ return U.widget_unit + int(UI_SCALE_FAC * HEADER_PADDING_Y); } -int ED_area_footersize(void) +int ED_area_footersize() { return ED_area_headersize(); } @@ -3514,7 +3514,7 @@ ScrArea *ED_screen_areas_iter_next(const bScreen *screen, const ScrArea *area) return static_cast(screen->areabase.first); } -int ED_region_global_size_y(void) +int ED_region_global_size_y() { return ED_area_headersize(); /* same size as header */ } diff --git a/source/blender/editors/sculpt_paint/paint_cursor.cc b/source/blender/editors/sculpt_paint/paint_cursor.cc index a33301464eb..e6037b31043 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.cc +++ b/source/blender/editors/sculpt_paint/paint_cursor.cc @@ -88,7 +88,7 @@ static TexSnapshot primary_snap = {nullptr}; static TexSnapshot secondary_snap = {nullptr}; static CursorSnapshot cursor_snap = {nullptr}; -void paint_cursor_delete_textures(void) +void paint_cursor_delete_textures() { if (primary_snap.overlay_texture) { GPU_texture_free(primary_snap.overlay_texture); diff --git a/source/blender/editors/sculpt_paint/paint_image.cc b/source/blender/editors/sculpt_paint/paint_image.cc index f37472dbcef..21dc8d1094e 100644 --- a/source/blender/editors/sculpt_paint/paint_image.cc +++ b/source/blender/editors/sculpt_paint/paint_image.cc @@ -77,7 +77,7 @@ */ static ImagePaintPartialRedraw imapaintpartial = {{0}}; -ImagePaintPartialRedraw *get_imapaintpartial(void) +ImagePaintPartialRedraw *get_imapaintpartial() { return &imapaintpartial; } @@ -89,7 +89,7 @@ void set_imapaintpartial(ImagePaintPartialRedraw *ippr) /* Image paint Partial Redraw & Dirty Region. */ -void ED_imapaint_clear_partial_redraw(void) +void ED_imapaint_clear_partial_redraw() { BLI_rcti_init_minmax(&imapaintpartial.dirty_region); } diff --git a/source/blender/editors/sculpt_paint/paint_ops.cc b/source/blender/editors/sculpt_paint/paint_ops.cc index c0d1a81fc06..59a15dfeae5 100644 --- a/source/blender/editors/sculpt_paint/paint_ops.cc +++ b/source/blender/editors/sculpt_paint/paint_ops.cc @@ -1442,7 +1442,7 @@ static void BRUSH_OT_stencil_reset_transform(wmOperatorType *ot) /**************************** registration **********************************/ -void ED_operatormacros_paint(void) +void ED_operatormacros_paint() { wmOperatorType *ot; wmOperatorTypeMacro *otmacro; @@ -1458,7 +1458,7 @@ void ED_operatormacros_paint(void) RNA_boolean_set(otmacro->ptr, "select", false); } -void ED_operatortypes_paint(void) +void ED_operatortypes_paint() { /* palette */ WM_operatortype_append(PALETTE_OT_new); diff --git a/source/blender/editors/sculpt_paint/sculpt_ops.cc b/source/blender/editors/sculpt_paint/sculpt_ops.cc index 3b71bccf49d..b63decb03cd 100644 --- a/source/blender/editors/sculpt_paint/sculpt_ops.cc +++ b/source/blender/editors/sculpt_paint/sculpt_ops.cc @@ -1380,7 +1380,7 @@ static void SCULPT_OT_reveal_all(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -void ED_operatortypes_sculpt(void) +void ED_operatortypes_sculpt() { WM_operatortype_append(SCULPT_OT_brush_stroke); WM_operatortype_append(SCULPT_OT_sculptmode_toggle); diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.cc b/source/blender/editors/sculpt_paint/sculpt_undo.cc index 796686c7c6a..d73901a5503 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.cc +++ b/source/blender/editors/sculpt_paint/sculpt_undo.cc @@ -2092,7 +2092,7 @@ static UndoSculpt *sculpt_undosys_step_get_nodes(UndoStep *us_p) return &us->data; } -static UndoSculpt *sculpt_undo_get_nodes(void) +static UndoSculpt *sculpt_undo_get_nodes() { UndoStack *ustack = ED_undo_stack_get(); UndoStep *us = BKE_undosys_stack_init_or_active_with_type(ustack, BKE_UNDOSYS_TYPE_SCULPT); diff --git a/source/blender/editors/space_action/action_ops.cc b/source/blender/editors/space_action/action_ops.cc index a64a8f5781f..e8585f524f4 100644 --- a/source/blender/editors/space_action/action_ops.cc +++ b/source/blender/editors/space_action/action_ops.cc @@ -23,7 +23,7 @@ /* ************************** registration - operator types **********************************/ -void action_operatortypes(void) +void action_operatortypes() { /* keyframes */ /* selection */ @@ -73,7 +73,7 @@ void action_operatortypes(void) WM_operatortype_append(ACTION_OT_markers_make_local); } -void ED_operatormacros_action(void) +void ED_operatormacros_action() { wmOperatorType *ot; wmOperatorTypeMacro *otmacro; diff --git a/source/blender/editors/space_action/space_action.cc b/source/blender/editors/space_action/space_action.cc index 523931f78bd..490713c0afe 100644 --- a/source/blender/editors/space_action/space_action.cc +++ b/source/blender/editors/space_action/space_action.cc @@ -885,7 +885,7 @@ static void action_main_region_view2d_changed(const bContext * /*C*/, ARegion *r action_clamp_scroll(region); } -void ED_spacetype_action(void) +void ED_spacetype_action() { SpaceType *st = MEM_cnew("spacetype action"); ARegionType *art; diff --git a/source/blender/editors/space_clip/clip_editor.cc b/source/blender/editors/space_clip/clip_editor.cc index c0c546889dc..f2ae9c4ccde 100644 --- a/source/blender/editors/space_clip/clip_editor.cc +++ b/source/blender/editors/space_clip/clip_editor.cc @@ -687,7 +687,7 @@ struct PrefetchQueue { }; /* check whether pre-fetching is allowed */ -static bool check_prefetch_break(void) +static bool check_prefetch_break() { return G.is_break; } diff --git a/source/blender/editors/space_clip/clip_ops.cc b/source/blender/editors/space_clip/clip_ops.cc index e6a3d87bcc4..a6393b20049 100644 --- a/source/blender/editors/space_clip/clip_ops.cc +++ b/source/blender/editors/space_clip/clip_ops.cc @@ -1870,7 +1870,7 @@ void CLIP_OT_lock_selection_toggle(wmOperatorType *ot) /** \name Macros * \{ */ -void ED_operatormacros_clip(void) +void ED_operatormacros_clip() { wmOperatorType *ot; wmOperatorTypeMacro *otmacro; diff --git a/source/blender/editors/space_clip/space_clip.cc b/source/blender/editors/space_clip/space_clip.cc index f79858a8746..f974fdb15d8 100644 --- a/source/blender/editors/space_clip/space_clip.cc +++ b/source/blender/editors/space_clip/space_clip.cc @@ -337,7 +337,7 @@ static void clip_listener(const wmSpaceTypeListenerParams *params) } } -static void clip_operatortypes(void) +static void clip_operatortypes() { /* ** clip_ops.c ** */ WM_operatortype_append(CLIP_OT_open); @@ -538,7 +538,7 @@ static void clip_drop_copy(bContext * /*C*/, wmDrag *drag, wmDropBox *drop) } /* area+region dropbox definition */ -static void clip_dropboxes(void) +static void clip_dropboxes() { ListBase *lb = WM_dropboxmap_find("Clip", SPACE_CLIP, 0); @@ -577,7 +577,7 @@ static void CLIP_GGT_navigate(wmGizmoGroupType *gzgt) VIEW2D_GGT_navigate_impl(gzgt, "CLIP_GGT_navigate"); } -static void clip_gizmos(void) +static void clip_gizmos() { const wmGizmoMapType_Params gizmo_params{SPACE_CLIP, RGN_TYPE_WINDOW}; wmGizmoMapType *gzmap_type = WM_gizmomaptype_ensure(&gizmo_params); @@ -1143,7 +1143,7 @@ static void clip_space_blend_write(BlendWriter *writer, SpaceLink *sl) BLO_write_struct(writer, SpaceClip, sl); } -void ED_spacetype_clip(void) +void ED_spacetype_clip() { SpaceType *st = MEM_cnew("spacetype clip"); ARegionType *art; diff --git a/source/blender/editors/space_clip/tracking_ops_track.cc b/source/blender/editors/space_clip/tracking_ops_track.cc index 486ab0cbb6c..baa9d7d8ce4 100644 --- a/source/blender/editors/space_clip/tracking_ops_track.cc +++ b/source/blender/editors/space_clip/tracking_ops_track.cc @@ -52,7 +52,7 @@ struct TrackMarkersJob { bScreen *screen; }; -static bool track_markers_testbreak(void) +static bool track_markers_testbreak() { return G.is_break; } diff --git a/source/blender/editors/space_clip/tracking_select.cc b/source/blender/editors/space_clip/tracking_select.cc index a9c56f52557..45aebb1a5aa 100644 --- a/source/blender/editors/space_clip/tracking_select.cc +++ b/source/blender/editors/space_clip/tracking_select.cc @@ -42,7 +42,7 @@ /** \name Point track marker picking. * \{ */ -BLI_INLINE PointTrackPick point_track_pick_make_null(void) +BLI_INLINE PointTrackPick point_track_pick_make_null() { PointTrackPick pick = {nullptr}; @@ -355,7 +355,7 @@ bool ed_tracking_point_track_pick_can_slide(const SpaceClip *space_clip, /** \name Plane track marker picking. * \{ */ -BLI_INLINE PlaneTrackPick plane_track_pick_make_null(void) +BLI_INLINE PlaneTrackPick plane_track_pick_make_null() { PlaneTrackPick result = {nullptr}; @@ -458,7 +458,7 @@ bool ed_tracking_plane_track_pick_can_slide(const PlaneTrackPick *pick) /** \name Pick closest point or plane track. * \{ */ -BLI_INLINE TrackingPick tracking_pick_make_null(void) +BLI_INLINE TrackingPick tracking_pick_make_null() { TrackingPick result; diff --git a/source/blender/editors/space_console/space_console.cc b/source/blender/editors/space_console/space_console.cc index 7ef45ea02d0..9ff3637c225 100644 --- a/source/blender/editors/space_console/space_console.cc +++ b/source/blender/editors/space_console/space_console.cc @@ -322,7 +322,7 @@ static void console_space_blend_write(BlendWriter *writer, SpaceLink *sl) BLO_write_struct(writer, SpaceConsole, sl); } -void ED_spacetype_console(void) +void ED_spacetype_console() { SpaceType *st = static_cast(MEM_callocN(sizeof(SpaceType), "spacetype console")); ARegionType *art; diff --git a/source/blender/editors/space_file/filelist.cc b/source/blender/editors/space_file/filelist.cc index 8c568f8f070..0f4ef2dd29d 100644 --- a/source/blender/editors/space_file/filelist.cc +++ b/source/blender/editors/space_file/filelist.cc @@ -1097,7 +1097,7 @@ void filelist_setlibrary(FileList *filelist, const AssetLibraryReference *asset_ /* ********** Icon/image helpers ********** */ -void filelist_init_icons(void) +void filelist_init_icons() { short x, y, k; ImBuf *bbuf; @@ -1136,7 +1136,7 @@ void filelist_init_icons(void) } } -void filelist_free_icons(void) +void filelist_free_icons() { BLI_assert(G.background == false); diff --git a/source/blender/editors/space_file/filesel.cc b/source/blender/editors/space_file/filesel.cc index df7ac9ba370..620241bd324 100644 --- a/source/blender/editors/space_file/filesel.cc +++ b/source/blender/editors/space_file/filesel.cc @@ -957,7 +957,7 @@ float file_string_width(const char *str) return BLF_width(style->widget.uifont_id, str, BLF_DRAW_STR_DUMMY_MAX); } -float file_font_pointsize(void) +float file_font_pointsize() { #if 0 float s; diff --git a/source/blender/editors/space_image/image_undo.cc b/source/blender/editors/space_image/image_undo.cc index 13b19f6a3b5..d2af6a67b45 100644 --- a/source/blender/editors/space_image/image_undo.cc +++ b/source/blender/editors/space_image/image_undo.cc @@ -63,12 +63,12 @@ static CLG_LogRef LOG = {"ed.image.undo"}; * paint operation, but for now just give a public interface */ static SpinLock paint_tiles_lock; -void ED_image_paint_tile_lock_init(void) +void ED_image_paint_tile_lock_init() { BLI_spin_init(&paint_tiles_lock); } -void ED_image_paint_tile_lock_end(void) +void ED_image_paint_tile_lock_end() { BLI_spin_end(&paint_tiles_lock); } @@ -1083,7 +1083,7 @@ void ED_image_undosys_type(UndoType *ut) * - So operators can access the pixel-data before the stroke was applied, at run-time. * \{ */ -PaintTileMap *ED_image_paint_tile_map_get(void) +PaintTileMap *ED_image_paint_tile_map_get() { UndoStack *ustack = ED_undo_stack_get(); UndoStep *us_prev = ustack->step_init; @@ -1155,7 +1155,7 @@ void ED_image_undo_push_begin_with_image(const char *name, } } -void ED_image_undo_push_end(void) +void ED_image_undo_push_end() { UndoStack *ustack = ED_undo_stack_get(); BKE_undosys_step_push(ustack, nullptr, nullptr); diff --git a/source/blender/editors/space_info/space_info.cc b/source/blender/editors/space_info/space_info.cc index b587e9e488b..189246c9e7f 100644 --- a/source/blender/editors/space_info/space_info.cc +++ b/source/blender/editors/space_info/space_info.cc @@ -254,7 +254,7 @@ static void info_space_blend_write(BlendWriter *writer, SpaceLink *sl) BLO_write_struct(writer, SpaceInfo, sl); } -void ED_spacetype_info(void) +void ED_spacetype_info() { SpaceType *st = static_cast(MEM_callocN(sizeof(SpaceType), "spacetype info")); ARegionType *art; diff --git a/source/blender/editors/space_nla/nla_ops.cc b/source/blender/editors/space_nla/nla_ops.cc index 0c4dd04efe8..ed14ebf0ece 100644 --- a/source/blender/editors/space_nla/nla_ops.cc +++ b/source/blender/editors/space_nla/nla_ops.cc @@ -80,7 +80,7 @@ bool nlaedit_is_tweakmode_on(bAnimContext *ac) /* ************************** registration - operator types **********************************/ -void nla_operatortypes(void) +void nla_operatortypes() { /* channels */ WM_operatortype_append(NLA_OT_channels_click); @@ -141,7 +141,7 @@ void nla_operatortypes(void) WM_operatortype_append(NLA_OT_fmodifier_paste); } -void ED_operatormacros_nla(void) +void ED_operatormacros_nla() { wmOperatorType *ot; wmOperatorTypeMacro *otmacro; diff --git a/source/blender/editors/space_nla/space_nla.cc b/source/blender/editors/space_nla/space_nla.cc index 32cb574e8df..39d2733d079 100644 --- a/source/blender/editors/space_nla/space_nla.cc +++ b/source/blender/editors/space_nla/space_nla.cc @@ -591,7 +591,7 @@ static void nla_space_blend_write(BlendWriter *writer, SpaceLink *sl) } } -void ED_spacetype_nla(void) +void ED_spacetype_nla() { SpaceType *st = MEM_cnew("spacetype nla"); ARegionType *art; diff --git a/source/blender/editors/space_outliner/space_outliner.cc b/source/blender/editors/space_outliner/space_outliner.cc index 02637d7e28e..5301f78ce97 100644 --- a/source/blender/editors/space_outliner/space_outliner.cc +++ b/source/blender/editors/space_outliner/space_outliner.cc @@ -565,7 +565,7 @@ static void outliner_space_blend_write(BlendWriter *writer, SpaceLink *sl) } // namespace blender::ed::outliner -void ED_spacetype_outliner(void) +void ED_spacetype_outliner() { using namespace blender::ed::outliner; diff --git a/source/blender/editors/space_sequencer/sequencer_channels_draw.cc b/source/blender/editors/space_sequencer/sequencer_channels_draw.cc index 5c9a4127362..c6b645ff314 100644 --- a/source/blender/editors/space_sequencer/sequencer_channels_draw.cc +++ b/source/blender/editors/space_sequencer/sequencer_channels_draw.cc @@ -308,7 +308,7 @@ static void draw_channel_headers(const SeqChannelDrawContext *context) GPU_matrix_pop(); } -static void draw_background(void) +static void draw_background() { UI_ThemeClearColor(TH_BACK); } diff --git a/source/blender/editors/space_sequencer/sequencer_drag_drop.cc b/source/blender/editors/space_sequencer/sequencer_drag_drop.cc index f7ff73e559e..fcc8ad10074 100644 --- a/source/blender/editors/space_sequencer/sequencer_drag_drop.cc +++ b/source/blender/editors/space_sequencer/sequencer_drag_drop.cc @@ -751,7 +751,7 @@ static void sequencer_preview_dropboxes_add_to_lb(ListBase *lb) nullptr); } -void sequencer_dropboxes(void) +void sequencer_dropboxes() { ListBase *lb = WM_dropboxmap_find("Sequencer", SPACE_SEQ, RGN_TYPE_WINDOW); sequencer_dropboxes_add_to_lb(lb); diff --git a/source/blender/editors/space_sequencer/sequencer_draw.cc b/source/blender/editors/space_sequencer/sequencer_draw.cc index f3979f1722c..51c7b5712e2 100644 --- a/source/blender/editors/space_sequencer/sequencer_draw.cc +++ b/source/blender/editors/space_sequencer/sequencer_draw.cc @@ -1478,7 +1478,7 @@ void sequencer_special_update_set(Sequence *seq) special_seq_update = seq; } -Sequence *ED_sequencer_special_preview_get(void) +Sequence *ED_sequencer_special_preview_get() { return special_seq_update; } @@ -1493,7 +1493,7 @@ void ED_sequencer_special_preview_set(bContext *C, const int mval[2]) sequencer_special_update_set(seq); } -void ED_sequencer_special_preview_clear(void) +void ED_sequencer_special_preview_clear() { sequencer_special_update_set(nullptr); } @@ -1811,7 +1811,7 @@ static void sequencer_stop_running_jobs(const bContext *C, Scene *scene) } } -static void sequencer_preview_clear(void) +static void sequencer_preview_clear() { UI_ThemeClearColor(TH_SEQ_PREVIEW); } diff --git a/source/blender/editors/space_sequencer/sequencer_ops.cc b/source/blender/editors/space_sequencer/sequencer_ops.cc index 48a0f5e7ff0..d1d335d99f9 100644 --- a/source/blender/editors/space_sequencer/sequencer_ops.cc +++ b/source/blender/editors/space_sequencer/sequencer_ops.cc @@ -20,7 +20,7 @@ /* ************************** registration **********************************/ -void sequencer_operatortypes(void) +void sequencer_operatortypes() { /* sequencer_edit.c */ WM_operatortype_append(SEQUENCER_OT_split); @@ -133,7 +133,7 @@ void sequencer_keymap(wmKeyConfig *keyconf) WM_keymap_ensure(keyconf, "Sequencer Channels", SPACE_SEQ, 0); } -void ED_operatormacros_sequencer(void) +void ED_operatormacros_sequencer() { wmOperatorType *ot; diff --git a/source/blender/editors/space_sequencer/space_sequencer.cc b/source/blender/editors/space_sequencer/space_sequencer.cc index 2e42e91426b..24304a6d735 100644 --- a/source/blender/editors/space_sequencer/space_sequencer.cc +++ b/source/blender/editors/space_sequencer/space_sequencer.cc @@ -420,7 +420,7 @@ static void SEQUENCER_GGT_gizmo2d_rotate(wmGizmoGroupType *gzgt) ED_widgetgroup_gizmo2d_rotate_callbacks_set(gzgt); } -static void sequencer_gizmos(void) +static void sequencer_gizmos() { const wmGizmoMapType_Params params = {SPACE_SEQ, RGN_TYPE_PREVIEW}; wmGizmoMapType *gzmap_type = WM_gizmomaptype_ensure(¶ms); @@ -992,7 +992,7 @@ static void sequencer_space_blend_write(BlendWriter *writer, SpaceLink *sl) BLO_write_struct(writer, SpaceSeq, sl); } -void ED_spacetype_sequencer(void) +void ED_spacetype_sequencer() { SpaceType *st = MEM_cnew("spacetype sequencer"); ARegionType *art; diff --git a/source/blender/editors/space_text/space_text.cc b/source/blender/editors/space_text/space_text.cc index 8dca0cece2b..25dea4da41b 100644 --- a/source/blender/editors/space_text/space_text.cc +++ b/source/blender/editors/space_text/space_text.cc @@ -155,7 +155,7 @@ static void text_listener(const wmSpaceTypeListenerParams *params) } } -static void text_operatortypes(void) +static void text_operatortypes() { WM_operatortype_append(TEXT_OT_new); WM_operatortype_append(TEXT_OT_open); @@ -335,7 +335,7 @@ static void text_drop_paste(bContext * /*C*/, wmDrag *drag, wmDropBox *drop) } /* this region dropbox definition */ -static void text_dropboxes(void) +static void text_dropboxes() { ListBase *lb = WM_dropboxmap_find("Text", SPACE_TEXT, RGN_TYPE_WINDOW); @@ -415,7 +415,7 @@ static void text_space_blend_write(BlendWriter *writer, SpaceLink *sl) /********************* registration ********************/ -void ED_spacetype_text(void) +void ED_spacetype_text() { SpaceType *st = static_cast(MEM_callocN(sizeof(SpaceType), "spacetype text")); ARegionType *art; diff --git a/source/blender/editors/space_text/text_autocomplete.cc b/source/blender/editors/space_text/text_autocomplete.cc index de5a7ab4040..ecaf11a9fbb 100644 --- a/source/blender/editors/space_text/text_autocomplete.cc +++ b/source/blender/editors/space_text/text_autocomplete.cc @@ -101,7 +101,7 @@ bool text_do_suggest_select(SpaceText *st, ARegion *region, const int mval[2]) return 1; } -void text_pop_suggest_list(void) +void text_pop_suggest_list() { SuggItem *item, *sel; int *top, i; diff --git a/source/blender/editors/space_view3d/view3d_gizmo_preselect_type.cc b/source/blender/editors/space_view3d/view3d_gizmo_preselect_type.cc index 30b0090c90f..bbe28bfae6e 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_preselect_type.cc +++ b/source/blender/editors/space_view3d/view3d_gizmo_preselect_type.cc @@ -485,7 +485,7 @@ static void GIZMO_GT_mesh_preselect_edgering_3d(wmGizmoType *gzt) /** \name Gizmo API * \{ */ -void ED_gizmotypes_preselect_3d(void) +void ED_gizmotypes_preselect_3d() { WM_gizmotype_append(GIZMO_GT_mesh_preselect_elem_3d); WM_gizmotype_append(GIZMO_GT_mesh_preselect_edgering_3d); diff --git a/source/blender/editors/space_view3d/view3d_navigate.cc b/source/blender/editors/space_view3d/view3d_navigate.cc index 1aeddefc5e4..e50c955a83d 100644 --- a/source/blender/editors/space_view3d/view3d_navigate.cc +++ b/source/blender/editors/space_view3d/view3d_navigate.cc @@ -498,7 +498,7 @@ bool view3d_orbit_calc_center(bContext *C, float r_dyn_ofs[3]) return is_set; } -static eViewOpsFlag viewops_flag_from_prefs(void) +static eViewOpsFlag viewops_flag_from_prefs() { const bool use_select = (U.uiflag & USER_ORBIT_SELECTION) != 0; const bool use_depth = (U.uiflag & USER_DEPTH_NAVIGATE) != 0; diff --git a/source/blender/editors/space_view3d/view3d_select.cc b/source/blender/editors/space_view3d/view3d_select.cc index 2a3ce233013..887b42200f1 100644 --- a/source/blender/editors/space_view3d/view3d_select.cc +++ b/source/blender/editors/space_view3d/view3d_select.cc @@ -106,7 +106,7 @@ /** \name Public Utilities * \{ */ -float ED_view3d_select_dist_px(void) +float ED_view3d_select_dist_px() { return 75.0f * U.pixelsize; } diff --git a/source/blender/editors/undo/ed_undo.cc b/source/blender/editors/undo/ed_undo.cc index 24d245b688b..3d8303feb4d 100644 --- a/source/blender/editors/undo/ed_undo.cc +++ b/source/blender/editors/undo/ed_undo.cc @@ -472,7 +472,7 @@ bool ED_undo_is_legacy_compatible_for_property(bContext *C, ID *id) return true; } -UndoStack *ED_undo_stack_get(void) +UndoStack *ED_undo_stack_get() { wmWindowManager *wm = static_cast(G_MAIN->wm.first); return wm->undo_stack; diff --git a/source/blender/editors/undo/undo_system_types.cc b/source/blender/editors/undo/undo_system_types.cc index bb78c34ada4..4f3b3e96481 100644 --- a/source/blender/editors/undo/undo_system_types.cc +++ b/source/blender/editors/undo/undo_system_types.cc @@ -26,7 +26,7 @@ /* Keep last */ #include "BKE_undo_system.h" -void ED_undosys_type_init(void) +void ED_undosys_type_init() { /* Edit Modes */ BKE_undosys_type_append(ED_armature_undosys_type); @@ -53,7 +53,7 @@ void ED_undosys_type_init(void) BKE_UNDOSYS_TYPE_MEMFILE = BKE_undosys_type_append(ED_memfile_undosys_type); } -void ED_undosys_type_free(void) +void ED_undosys_type_free() { BKE_undosys_type_free_all(); } diff --git a/source/blender/editors/uvedit/uvedit_ops.cc b/source/blender/editors/uvedit/uvedit_ops.cc index abde3c76840..f2c7d1933bf 100644 --- a/source/blender/editors/uvedit/uvedit_ops.cc +++ b/source/blender/editors/uvedit/uvedit_ops.cc @@ -2034,7 +2034,7 @@ static void UV_OT_mark_seam(wmOperatorType *ot) /** \name Operator Registration & Keymap * \{ */ -void ED_operatortypes_uvedit(void) +void ED_operatortypes_uvedit() { /* uvedit_select.c */ WM_operatortype_append(UV_OT_select_all); @@ -2089,7 +2089,7 @@ void ED_operatortypes_uvedit(void) WM_operatortype_append(UV_OT_cursor_set); } -void ED_operatormacros_uvedit(void) +void ED_operatormacros_uvedit() { wmOperatorType *ot; wmOperatorTypeMacro *otmacro; diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.cc b/source/blender/editors/uvedit/uvedit_unwrap_ops.cc index 3c3e12e64c2..31a2b423b9d 100644 --- a/source/blender/editors/uvedit/uvedit_unwrap_ops.cc +++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.cc @@ -1850,7 +1850,7 @@ void ED_uvedit_live_unwrap_begin(Scene *scene, Object *obedit) g_live_unwrap.len++; } -void ED_uvedit_live_unwrap_re_solve(void) +void ED_uvedit_live_unwrap_re_solve() { if (g_live_unwrap.handles) { for (int i = 0; i < g_live_unwrap.len; i++) { diff --git a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp index b717ef88a93..068724027f2 100644 --- a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp +++ b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp @@ -679,7 +679,7 @@ void FRS_end_stroke_rendering(Render * /*re*/) controller->Clear(); } -void FRS_free_view_map_cache(void) +void FRS_free_view_map_cache() { // free cache controller->DeleteViewMap(true); diff --git a/source/blender/freestyle/intern/python/BPy_Freestyle.cpp b/source/blender/freestyle/intern/python/BPy_Freestyle.cpp index d6137392e88..67a4a18b4fe 100644 --- a/source/blender/freestyle/intern/python/BPy_Freestyle.cpp +++ b/source/blender/freestyle/intern/python/BPy_Freestyle.cpp @@ -527,7 +527,7 @@ static PyModuleDef module_definition = { }; //-------------------MODULE INITIALIZATION-------------------------------- -PyObject *Freestyle_Init(void) +PyObject *Freestyle_Init() { PyObject *module; diff --git a/source/blender/gpu/intern/gpu_capabilities.cc b/source/blender/gpu/intern/gpu_capabilities.cc index 6fe3ee21449..471040f401b 100644 --- a/source/blender/gpu/intern/gpu_capabilities.cc +++ b/source/blender/gpu/intern/gpu_capabilities.cc @@ -34,7 +34,7 @@ int GPU_max_texture_size() return GCaps.max_texture_size; } -int GPU_max_texture_3d_size(void) +int GPU_max_texture_3d_size() { return GCaps.max_texture_3d_size; } @@ -192,12 +192,12 @@ int GPU_max_compute_shader_storage_blocks() return GCaps.max_compute_shader_storage_blocks; } -int GPU_minimum_per_vertex_stride(void) +int GPU_minimum_per_vertex_stride() { return GCaps.minimum_per_vertex_stride; } -bool GPU_transform_feedback_support(void) +bool GPU_transform_feedback_support() { return GCaps.transform_feedback_support; } diff --git a/source/blender/gpu/intern/gpu_codegen.cc b/source/blender/gpu/intern/gpu_codegen.cc index a2cab889f7a..4870c8c9b15 100644 --- a/source/blender/gpu/intern/gpu_codegen.cc +++ b/source/blender/gpu/intern/gpu_codegen.cc @@ -924,7 +924,7 @@ void GPU_pass_release(GPUPass *pass) BLI_spin_unlock(&pass_cache_spin); } -void GPU_pass_cache_garbage_collect(void) +void GPU_pass_cache_garbage_collect() { const int shadercollectrate = 60; /* hardcoded for now. */ int ctime = int(PIL_check_seconds_timer()); @@ -947,12 +947,12 @@ void GPU_pass_cache_garbage_collect(void) BLI_spin_unlock(&pass_cache_spin); } -void GPU_pass_cache_init(void) +void GPU_pass_cache_init() { BLI_spin_init(&pass_cache_spin); } -void GPU_pass_cache_free(void) +void GPU_pass_cache_free() { BLI_spin_lock(&pass_cache_spin); while (pass_cache) { @@ -973,7 +973,7 @@ void GPU_pass_cache_free(void) void gpu_codegen_init(void) {} -void gpu_codegen_exit(void) +void gpu_codegen_exit() { BKE_material_defaults_free_gpu(); GPU_shader_free_builtin_shaders(); diff --git a/source/blender/gpu/intern/gpu_context.cc b/source/blender/gpu/intern/gpu_context.cc index e6e6eabb594..8a6a4a9f9d0 100644 --- a/source/blender/gpu/intern/gpu_context.cc +++ b/source/blender/gpu/intern/gpu_context.cc @@ -248,12 +248,12 @@ void GPU_backend_type_selection_set_override(const eGPUBackendType backend_type) g_backend_type_override = backend_type; } -bool GPU_backend_type_selection_is_overridden(void) +bool GPU_backend_type_selection_is_overridden() { return g_backend_type_override.has_value(); } -bool GPU_backend_type_selection_detect(void) +bool GPU_backend_type_selection_detect() { blender::Vector backends_to_check; if (GPU_backend_type_selection_is_overridden()) { diff --git a/source/blender/gpu/intern/gpu_shader_builtin.cc b/source/blender/gpu/intern/gpu_shader_builtin.cc index 9af36b3974e..7f6460d618b 100644 --- a/source/blender/gpu/intern/gpu_shader_builtin.cc +++ b/source/blender/gpu/intern/gpu_shader_builtin.cc @@ -154,7 +154,7 @@ GPUShader *GPU_shader_get_builtin_shader(eGPUBuiltinShader shader) return GPU_shader_get_builtin_shader_with_config(shader, GPU_SHADER_CFG_DEFAULT); } -void GPU_shader_free_builtin_shaders(void) +void GPU_shader_free_builtin_shaders() { for (int i = 0; i < GPU_SHADER_CFG_LEN; i++) { for (int j = 0; j < GPU_SHADER_BUILTIN_LEN; j++) { diff --git a/source/blender/imbuf/intern/allocimbuf.cc b/source/blender/imbuf/intern/allocimbuf.cc index 16f496c81d2..0502e3ade5c 100644 --- a/source/blender/imbuf/intern/allocimbuf.cc +++ b/source/blender/imbuf/intern/allocimbuf.cc @@ -29,12 +29,12 @@ static SpinLock refcounter_spin; -void imb_refcounter_lock_init(void) +void imb_refcounter_lock_init() { BLI_spin_init(&refcounter_spin); } -void imb_refcounter_lock_exit(void) +void imb_refcounter_lock_exit() { BLI_spin_end(&refcounter_spin); } @@ -42,22 +42,22 @@ void imb_refcounter_lock_exit(void) #ifndef WIN32 static SpinLock mmap_spin; -void imb_mmap_lock_init(void) +void imb_mmap_lock_init() { BLI_spin_init(&mmap_spin); } -void imb_mmap_lock_exit(void) +void imb_mmap_lock_exit() { BLI_spin_end(&mmap_spin); } -void imb_mmap_lock(void) +void imb_mmap_lock() { BLI_spin_lock(&mmap_spin); } -void imb_mmap_unlock(void) +void imb_mmap_unlock() { BLI_spin_unlock(&mmap_spin); } diff --git a/source/blender/imbuf/intern/colormanagement.cc b/source/blender/imbuf/intern/colormanagement.cc index fa68e12b096..f3d4d03a01f 100644 --- a/source/blender/imbuf/intern/colormanagement.cc +++ b/source/blender/imbuf/intern/colormanagement.cc @@ -587,7 +587,7 @@ static void colormanage_load_config(OCIO_ConstConfigRcPtr *config) invert_m3_m3(imbuf_scene_linear_to_aces, imbuf_aces_to_scene_linear); } -static void colormanage_free_config(void) +static void colormanage_free_config() { ColorSpace *colorspace; ColorManagedDisplay *display; @@ -647,7 +647,7 @@ static void colormanage_free_config(void) OCIO_exit(); } -void colormanagement_init(void) +void colormanagement_init() { const char *ocio_env; const char *configdir; @@ -704,7 +704,7 @@ void colormanagement_init(void) BLI_init_srgb_conversion(); } -void colormanagement_exit(void) +void colormanagement_exit() { OCIO_gpuCacheFree(); @@ -1401,7 +1401,7 @@ bool IMB_colormanagement_space_name_is_srgb(const char *name) return (colorspace && IMB_colormanagement_space_is_srgb(colorspace)); } -const float *IMB_colormanagement_get_xyz_to_scene_linear(void) +const float *IMB_colormanagement_get_xyz_to_scene_linear() { return &imbuf_xyz_to_scene_linear[0][0]; } @@ -2807,7 +2807,7 @@ void IMB_display_buffer_release(void *cache_handle) /** \name Display Functions * \{ */ -const char *colormanage_display_get_default_name(void) +const char *colormanage_display_get_default_name() { OCIO_ConstConfigRcPtr *config = OCIO_getCurrentConfig(); const char *display_name; @@ -2819,7 +2819,7 @@ const char *colormanage_display_get_default_name(void) return display_name; } -ColorManagedDisplay *colormanage_display_get_default(void) +ColorManagedDisplay *colormanage_display_get_default() { const char *display_name = colormanage_display_get_default_name(); @@ -2895,7 +2895,7 @@ const char *IMB_colormanagement_display_get_indexed_name(int index) return nullptr; } -const char *IMB_colormanagement_display_get_default_name(void) +const char *IMB_colormanagement_display_get_default_name() { ColorManagedDisplay *display = colormanage_display_get_default(); @@ -2907,7 +2907,7 @@ ColorManagedDisplay *IMB_colormanagement_display_get_named(const char *name) return colormanage_display_get_named(name); } -const char *IMB_colormanagement_display_get_none_name(void) +const char *IMB_colormanagement_display_get_none_name() { if (colormanage_display_get_named("None") != nullptr) { return "None"; @@ -4105,7 +4105,7 @@ bool IMB_colormanagement_setup_glsl_draw_ctx(const bContext *C, float dither, bo return IMB_colormanagement_setup_glsl_draw_from_space_ctx(C, nullptr, dither, predivide); } -void IMB_colormanagement_finish_glsl_draw(void) +void IMB_colormanagement_finish_glsl_draw() { if (global_gpu_state.gpu_shader_bound) { OCIO_gpuDisplayShaderUnbind(); diff --git a/source/blender/imbuf/intern/filetype.cc b/source/blender/imbuf/intern/filetype.cc index d583e30b6b6..90ad48b9bcd 100644 --- a/source/blender/imbuf/intern/filetype.cc +++ b/source/blender/imbuf/intern/filetype.cc @@ -219,7 +219,7 @@ const ImFileType *IMB_file_type_from_ibuf(const ImBuf *ibuf) return IMB_file_type_from_ftype(ibuf->ftype); } -void imb_filetypes_init(void) +void imb_filetypes_init() { const ImFileType *type; @@ -230,7 +230,7 @@ void imb_filetypes_init(void) } } -void imb_filetypes_exit(void) +void imb_filetypes_exit() { const ImFileType *type; diff --git a/source/blender/imbuf/intern/module.cc b/source/blender/imbuf/intern/module.cc index edd82900eb5..37b86093b25 100644 --- a/source/blender/imbuf/intern/module.cc +++ b/source/blender/imbuf/intern/module.cc @@ -15,7 +15,7 @@ #include "IMB_filetype.h" #include "IMB_imbuf.h" -void IMB_init(void) +void IMB_init() { imb_refcounter_lock_init(); imb_mmap_lock_init(); @@ -23,7 +23,7 @@ void IMB_init(void) colormanagement_init(); } -void IMB_exit(void) +void IMB_exit() { imb_filetypes_exit(); colormanagement_exit(); diff --git a/source/blender/imbuf/intern/moviecache.cc b/source/blender/imbuf/intern/moviecache.cc index fd0f708e732..90536a2d1e9 100644 --- a/source/blender/imbuf/intern/moviecache.cc +++ b/source/blender/imbuf/intern/moviecache.cc @@ -247,7 +247,7 @@ static bool get_item_destroyable(void *item_v) return true; } -void IMB_moviecache_init(void) +void IMB_moviecache_init() { limitor = new_MEM_CacheLimiter(moviecache_destructor, get_item_size); @@ -255,7 +255,7 @@ void IMB_moviecache_init(void) MEM_CacheLimiter_ItemDestroyable_Func_set(limitor, get_item_destroyable); } -void IMB_moviecache_destruct(void) +void IMB_moviecache_destruct() { if (limitor) { delete_MEM_CacheLimiter(limitor); diff --git a/source/blender/imbuf/intern/oiio/openimageio_api.cpp b/source/blender/imbuf/intern/oiio/openimageio_api.cpp index a96f9367f9d..8d149ca18da 100644 --- a/source/blender/imbuf/intern/oiio/openimageio_api.cpp +++ b/source/blender/imbuf/intern/oiio/openimageio_api.cpp @@ -13,7 +13,7 @@ OIIO_NAMESPACE_USING extern "C" { -int OIIO_getVersionHex(void) +int OIIO_getVersionHex() { return openimageio_version(); } diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index 349af2b620b..fc7c7185a1f 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -750,7 +750,7 @@ static bool imb_exr_multilayer_parse_channels_from_file(ExrHandle *data); /* ********************** */ -void *IMB_exr_get_handle(void) +void *IMB_exr_get_handle() { ExrHandle *data = MEM_cnew("exr handle"); data->multiView = new StringVector(); @@ -2300,7 +2300,7 @@ ImBuf *imb_load_filepath_thumbnail_openexr(const char *filepath, return nullptr; } -void imb_initopenexr(void) +void imb_initopenexr() { /* In a multithreaded program, staticInitialize() must be called once during startup, before the * program accesses any other functions or classes in the IlmImf library. */ @@ -2308,7 +2308,7 @@ void imb_initopenexr(void) Imf::setGlobalThreadCount(BLI_system_thread_count()); } -void imb_exitopenexr(void) +void imb_exitopenexr() { /* Tells OpenEXR to free thread pool, also ensures there is no running tasks. */ Imf::setGlobalThreadCount(0); diff --git a/source/blender/imbuf/intern/thumbs.cc b/source/blender/imbuf/intern/thumbs.cc index 88db853f943..e01cf8e9e22 100644 --- a/source/blender/imbuf/intern/thumbs.cc +++ b/source/blender/imbuf/intern/thumbs.cc @@ -296,7 +296,7 @@ static bool thumbpath_from_uri(const char *uri, char *path, const int path_maxnc return thumbpathname_from_uri(uri, path, path_maxncpy, nullptr, 0, size); } -void IMB_thumb_makedirs(void) +void IMB_thumb_makedirs() { char tpath[FILE_MAX]; #if 0 /* UNUSED */ @@ -649,7 +649,7 @@ static struct IMBThumbLocks { ThreadCondition cond; } thumb_locks = {0}; -void IMB_thumb_locks_acquire(void) +void IMB_thumb_locks_acquire() { BLI_thread_lock(LOCK_IMAGE); @@ -665,7 +665,7 @@ void IMB_thumb_locks_acquire(void) BLI_thread_unlock(LOCK_IMAGE); } -void IMB_thumb_locks_release(void) +void IMB_thumb_locks_release() { BLI_thread_lock(LOCK_IMAGE); BLI_assert((thumb_locks.locked_paths != nullptr) && (thumb_locks.lock_counter > 0)); diff --git a/source/blender/imbuf/intern/util.cc b/source/blender/imbuf/intern/util.cc index 9977578c172..09c48923f18 100644 --- a/source/blender/imbuf/intern/util.cc +++ b/source/blender/imbuf/intern/util.cc @@ -214,7 +214,7 @@ static void ffmpeg_log_callback(void *ptr, int level, const char *format, va_lis # pragma GCC diagnostic pop # endif -void IMB_ffmpeg_init(void) +void IMB_ffmpeg_init() { avdevice_register_all(); @@ -228,7 +228,7 @@ void IMB_ffmpeg_init(void) av_log_set_callback(ffmpeg_log_callback); } -const char *IMB_ffmpeg_last_error(void) +const char *IMB_ffmpeg_last_error() { return ffmpeg_last_error; } diff --git a/source/blender/makesrna/intern/rna_access.cc b/source/blender/makesrna/intern/rna_access.cc index c98923db0f7..5d04c27e589 100644 --- a/source/blender/makesrna/intern/rna_access.cc +++ b/source/blender/makesrna/intern/rna_access.cc @@ -64,7 +64,7 @@ const PointerRNA PointerRNA_NULL = {nullptr}; /* Init/Exit */ -void RNA_init(void) +void RNA_init() { StructRNA *srna; PropertyRNA *prop; @@ -91,7 +91,7 @@ void RNA_init(void) } } -void RNA_exit(void) +void RNA_exit() { StructRNA *srna; @@ -6984,7 +6984,7 @@ void RNA_struct_state_owner_set(const char *name) } } -const char *RNA_struct_state_owner_get(void) +const char *RNA_struct_state_owner_get() { if (rna_struct_state_owner[0]) { return rna_struct_state_owner; diff --git a/source/blender/makesrna/intern/rna_userdef.cc b/source/blender/makesrna/intern/rna_userdef.cc index 5d2a0da0f06..9f8ab371f15 100644 --- a/source/blender/makesrna/intern/rna_userdef.cc +++ b/source/blender/makesrna/intern/rna_userdef.cc @@ -203,7 +203,7 @@ static void rna_userdef_version_get(PointerRNA *ptr, int *value) /** Mark the preferences as being changed so they are saved on exit. */ # define USERDEF_TAG_DIRTY rna_userdef_is_dirty_update_impl() -void rna_userdef_is_dirty_update_impl(void) +void rna_userdef_is_dirty_update_impl() { /* We can't use 'ptr->data' because this update function * is used for themes and other nested data. */ @@ -366,7 +366,7 @@ static void rna_userdef_script_directory_name_set(PointerRNA *ptr, const char *v sizeof(script_dir->name)); } -static bUserScriptDirectory *rna_userdef_script_directory_new(void) +static bUserScriptDirectory *rna_userdef_script_directory_new() { bUserScriptDirectory *script_dir = static_cast( MEM_callocN(sizeof(*script_dir), __func__)); @@ -682,7 +682,7 @@ static void rna_userdef_autosave_update(Main *bmain, Scene *scene, PointerRNA *p return USER_EXPERIMENTAL_TEST(userdef, member); \ } -static bAddon *rna_userdef_addon_new(void) +static bAddon *rna_userdef_addon_new() { ListBase *addons_list = &U.addons; bAddon *addon = BKE_addon_new(); @@ -705,7 +705,7 @@ static void rna_userdef_addon_remove(ReportList *reports, PointerRNA *addon_ptr) USERDEF_TAG_DIRTY; } -static bPathCompare *rna_userdef_pathcompare_new(void) +static bPathCompare *rna_userdef_pathcompare_new() { bPathCompare *path_cmp = static_cast( MEM_callocN(sizeof(bPathCompare), "bPathCompare")); @@ -1144,7 +1144,7 @@ static const EnumPropertyItem *rna_preference_gpu_backend_itemf(bContext * /*C*/ */ /* Get maximum addressable memory in megabytes, */ -static size_t max_memory_in_megabytes(void) +static size_t max_memory_in_megabytes() { /* Maximum addressable bytes on this platform. */ const size_t limit_bytes = (((size_t)1) << (sizeof(size_t[8]) - 1)); @@ -1153,7 +1153,7 @@ static size_t max_memory_in_megabytes(void) } /* Same as above, but clipped to int capacity. */ -static int max_memory_in_megabytes_int(void) +static int max_memory_in_megabytes_int() { const size_t limit_megabytes = max_memory_in_megabytes(); /* NOTE: The result will fit into integer. */ diff --git a/source/blender/makesrna/intern/rna_wm_api.cc b/source/blender/makesrna/intern/rna_wm_api.cc index 468ed7f977d..391d8c30e21 100644 --- a/source/blender/makesrna/intern/rna_wm_api.cc +++ b/source/blender/makesrna/intern/rna_wm_api.cc @@ -594,7 +594,7 @@ static void rna_WindowManager_print_undo_steps(wmWindowManager *wm) BKE_undosys_print(wm->undo_stack); } -static void rna_WindowManager_tag_script_reload(void) +static void rna_WindowManager_tag_script_reload() { WM_script_tag_reload(); WM_main_add_notifier(NC_WINDOW, nullptr); diff --git a/source/blender/modifiers/intern/MOD_laplaciandeform.cc b/source/blender/modifiers/intern/MOD_laplaciandeform.cc index e173d1e5cbc..dcbfafef194 100644 --- a/source/blender/modifiers/intern/MOD_laplaciandeform.cc +++ b/source/blender/modifiers/intern/MOD_laplaciandeform.cc @@ -78,7 +78,7 @@ struct LaplacianSystem { MeshElemMap *ringv_map; /* Map of vertex per vertex */ }; -static LaplacianSystem *newLaplacianSystem(void) +static LaplacianSystem *newLaplacianSystem() { LaplacianSystem *sys = MEM_cnew(__func__); diff --git a/source/blender/nodes/composite/nodes/node_composite_convert_color_space.cc b/source/blender/nodes/composite/nodes/node_composite_convert_color_space.cc index 5e9ac1d8e9b..985c3f1fff2 100644 --- a/source/blender/nodes/composite/nodes/node_composite_convert_color_space.cc +++ b/source/blender/nodes/composite/nodes/node_composite_convert_color_space.cc @@ -149,7 +149,7 @@ static NodeOperation *get_compositor_operation(Context &context, DNode node) } // namespace blender::nodes::node_composite_convert_color_space_cc -void register_node_type_cmp_convert_color_space(void) +void register_node_type_cmp_convert_color_space() { namespace file_ns = blender::nodes::node_composite_convert_color_space_cc; static bNodeType ntype; diff --git a/source/blender/nodes/function/nodes/node_fn_combine_color.cc b/source/blender/nodes/function/nodes/node_fn_combine_color.cc index 5bd0523befc..4c2cc77a388 100644 --- a/source/blender/nodes/function/nodes/node_fn_combine_color.cc +++ b/source/blender/nodes/function/nodes/node_fn_combine_color.cc @@ -81,7 +81,7 @@ static void node_build_multi_function(NodeMultiFunctionBuilder &builder) } // namespace blender::nodes::node_fn_combine_color_cc -void register_node_type_fn_combine_color(void) +void register_node_type_fn_combine_color() { namespace file_ns = blender::nodes::node_fn_combine_color_cc; diff --git a/source/blender/nodes/function/nodes/node_fn_separate_color.cc b/source/blender/nodes/function/nodes/node_fn_separate_color.cc index 24903095172..8a20c144464 100644 --- a/source/blender/nodes/function/nodes/node_fn_separate_color.cc +++ b/source/blender/nodes/function/nodes/node_fn_separate_color.cc @@ -199,7 +199,7 @@ static void node_build_multi_function(NodeMultiFunctionBuilder &builder) } // namespace blender::nodes -void register_node_type_fn_separate_color(void) +void register_node_type_fn_separate_color() { static bNodeType ntype; diff --git a/source/blender/nodes/texture/nodes/node_texture_common.cc b/source/blender/nodes/texture/nodes/node_texture_common.cc index b839c92734b..a161e27a661 100644 --- a/source/blender/nodes/texture/nodes/node_texture_common.cc +++ b/source/blender/nodes/texture/nodes/node_texture_common.cc @@ -140,7 +140,7 @@ static void group_execute(void *data, ntreeReleaseThreadStack(nts); } -void register_node_type_tex_group(void) +void register_node_type_tex_group() { static bNodeType ntype; diff --git a/source/blender/nodes/texture/nodes/node_texture_distance.cc b/source/blender/nodes/texture/nodes/node_texture_distance.cc index 7d73737ccb2..303afa12572 100644 --- a/source/blender/nodes/texture/nodes/node_texture_distance.cc +++ b/source/blender/nodes/texture/nodes/node_texture_distance.cc @@ -41,7 +41,7 @@ static void exec(void *data, tex_output(node, execdata, in, out[0], &valuefn, static_cast(data)); } -void register_node_type_tex_distance(void) +void register_node_type_tex_distance() { static bNodeType ntype; diff --git a/source/blender/nodes/texture/nodes/node_texture_mixRgb.cc b/source/blender/nodes/texture/nodes/node_texture_mixRgb.cc index c4a6a61b4b5..85e2a7632ef 100644 --- a/source/blender/nodes/texture/nodes/node_texture_mixRgb.cc +++ b/source/blender/nodes/texture/nodes/node_texture_mixRgb.cc @@ -50,7 +50,7 @@ static void exec(void *data, tex_output(node, execdata, in, out[0], &colorfn, static_cast(data)); } -void register_node_type_tex_mix_rgb(void) +void register_node_type_tex_mix_rgb() { static bNodeType ntype; diff --git a/source/blender/nodes/texture/nodes/node_texture_output.cc b/source/blender/nodes/texture/nodes/node_texture_output.cc index 2cdd3d1710a..d1596291bcc 100644 --- a/source/blender/nodes/texture/nodes/node_texture_output.cc +++ b/source/blender/nodes/texture/nodes/node_texture_output.cc @@ -133,7 +133,7 @@ static void copy(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node) assign_index(dest_node); } -void register_node_type_tex_output(void) +void register_node_type_tex_output() { static bNodeType ntype; diff --git a/source/blender/nodes/texture/nodes/node_texture_texture.cc b/source/blender/nodes/texture/nodes/node_texture_texture.cc index 2f5f7016bda..44c994c7a55 100644 --- a/source/blender/nodes/texture/nodes/node_texture_texture.cc +++ b/source/blender/nodes/texture/nodes/node_texture_texture.cc @@ -74,7 +74,7 @@ static void exec(void *data, tex_output(node, execdata, in, out[0], &colorfn, static_cast(data)); } -void register_node_type_tex_texture(void) +void register_node_type_tex_texture() { static bNodeType ntype; diff --git a/source/blender/nodes/texture/nodes/node_texture_translate.cc b/source/blender/nodes/texture/nodes/node_texture_translate.cc index 64ca7e4c7f5..ee6116750ad 100644 --- a/source/blender/nodes/texture/nodes/node_texture_translate.cc +++ b/source/blender/nodes/texture/nodes/node_texture_translate.cc @@ -45,7 +45,7 @@ static void exec(void *data, tex_output(node, execdata, in, out[0], &colorfn, static_cast(data)); } -void register_node_type_tex_translate(void) +void register_node_type_tex_translate() { static bNodeType ntype; diff --git a/source/blender/nodes/texture/nodes/node_texture_valToNor.cc b/source/blender/nodes/texture/nodes/node_texture_valToNor.cc index 20e7fbd6b54..07e2cca8972 100644 --- a/source/blender/nodes/texture/nodes/node_texture_valToNor.cc +++ b/source/blender/nodes/texture/nodes/node_texture_valToNor.cc @@ -61,7 +61,7 @@ static void exec(void *data, tex_output(node, execdata, in, out[0], &normalfn, static_cast(data)); } -void register_node_type_tex_valtonor(void) +void register_node_type_tex_valtonor() { static bNodeType ntype; diff --git a/source/blender/nodes/texture/nodes/node_texture_valToRgb.cc b/source/blender/nodes/texture/nodes/node_texture_valToRgb.cc index 71ffb0bd49c..e22558a427f 100644 --- a/source/blender/nodes/texture/nodes/node_texture_valToRgb.cc +++ b/source/blender/nodes/texture/nodes/node_texture_valToRgb.cc @@ -44,7 +44,7 @@ static void valtorgb_init(bNodeTree * /*ntree*/, bNode *node) node->storage = BKE_colorband_add(true); } -void register_node_type_tex_valtorgb(void) +void register_node_type_tex_valtorgb() { static bNodeType ntype; @@ -86,7 +86,7 @@ static void rgbtobw_exec(void *data, tex_output(node, execdata, in, out[0], &rgbtobw_valuefn, static_cast(data)); } -void register_node_type_tex_rgbtobw(void) +void register_node_type_tex_rgbtobw() { static bNodeType ntype; diff --git a/source/blender/nodes/texture/nodes/node_texture_viewer.cc b/source/blender/nodes/texture/nodes/node_texture_viewer.cc index 27665d480ef..b63f98b6dff 100644 --- a/source/blender/nodes/texture/nodes/node_texture_viewer.cc +++ b/source/blender/nodes/texture/nodes/node_texture_viewer.cc @@ -33,7 +33,7 @@ static void exec(void *data, } } -void register_node_type_tex_viewer(void) +void register_node_type_tex_viewer() { static bNodeType ntype; diff --git a/source/blender/python/mathutils/mathutils_bvhtree.cc b/source/blender/python/mathutils/mathutils_bvhtree.cc index 2dd98afdd01..8422210bc88 100644 --- a/source/blender/python/mathutils/mathutils_bvhtree.cc +++ b/source/blender/python/mathutils/mathutils_bvhtree.cc @@ -156,7 +156,7 @@ static PyObject *py_bvhtree_raycast_to_py(const BVHTreeRayHit *hit) return py_retval; } -static PyObject *py_bvhtree_raycast_to_py_none(void) +static PyObject *py_bvhtree_raycast_to_py_none() { PyObject *py_retval = PyTuple_New(4); @@ -210,7 +210,7 @@ static PyObject *py_bvhtree_nearest_to_py(const BVHTreeNearest *nearest) return py_retval; } -static PyObject *py_bvhtree_nearest_to_py_none(void) +static PyObject *py_bvhtree_nearest_to_py_none() { PyObject *py_retval = PyTuple_New(4); @@ -1324,7 +1324,7 @@ static PyModuleDef bvhtree_moduledef = { /*m_free*/ nullptr, }; -PyMODINIT_FUNC PyInit_mathutils_bvhtree(void) +PyMODINIT_FUNC PyInit_mathutils_bvhtree() { PyObject *m = PyModule_Create(&bvhtree_moduledef); diff --git a/source/blender/render/intern/engine.cc b/source/blender/render/intern/engine.cc index d2d43cbc4f0..7b154b46bda 100644 --- a/source/blender/render/intern/engine.cc +++ b/source/blender/render/intern/engine.cc @@ -59,7 +59,7 @@ ListBase R_engines = {nullptr, nullptr}; -void RE_engines_init(void) +void RE_engines_init() { DRW_engines_register(); } @@ -69,7 +69,7 @@ void RE_engines_init_experimental() DRW_engines_register_experimental(); } -void RE_engines_exit(void) +void RE_engines_exit() { RenderEngineType *type, *next; diff --git a/source/blender/render/intern/multires_bake.cc b/source/blender/render/intern/multires_bake.cc index c1871c8d429..aaba683899f 100644 --- a/source/blender/render/intern/multires_bake.cc +++ b/source/blender/render/intern/multires_bake.cc @@ -1039,7 +1039,7 @@ static void apply_tangmat_callback(const blender::Span /*vert_p static ushort ao_random_table_1[MAX_NUMBER_OF_AO_RAYS]; static ushort ao_random_table_2[MAX_NUMBER_OF_AO_RAYS]; -static void init_ao_random(void) +static void init_ao_random() { int i; diff --git a/source/blender/render/intern/pipeline.cc b/source/blender/render/intern/pipeline.cc index 293a0d68d4e..a146b4d62b1 100644 --- a/source/blender/render/intern/pipeline.cc +++ b/source/blender/render/intern/pipeline.cc @@ -614,7 +614,7 @@ void RE_FreeRender(Render *re) MEM_freeN(re); } -void RE_FreeAllRender(void) +void RE_FreeAllRender() { while (RenderGlobal.renderlist.first) { RE_FreeRender(static_cast(RenderGlobal.renderlist.first)); @@ -626,7 +626,7 @@ void RE_FreeAllRender(void) #endif } -void RE_FreeAllRenderResults(void) +void RE_FreeAllRenderResults() { LISTBASE_FOREACH (Render *, re, &RenderGlobal.renderlist) { render_result_free(re->result); @@ -638,7 +638,7 @@ void RE_FreeAllRenderResults(void) } } -void RE_FreeAllPersistentData(void) +void RE_FreeAllPersistentData() { LISTBASE_FOREACH (Render *, re, &RenderGlobal.renderlist) { if (re->engine != nullptr) { diff --git a/source/blender/windowmanager/intern/wm_dragdrop.cc b/source/blender/windowmanager/intern/wm_dragdrop.cc index df46cab44a5..8d8d0233818 100644 --- a/source/blender/windowmanager/intern/wm_dragdrop.cc +++ b/source/blender/windowmanager/intern/wm_dragdrop.cc @@ -125,7 +125,7 @@ wmDropBox *WM_dropbox_add(ListBase *lb, return drop; } -void wm_dropbox_free(void) +void wm_dropbox_free() { LISTBASE_FOREACH (wmDropBoxMap *, dm, &dropboxes) { diff --git a/source/blender/windowmanager/intern/wm_event_system.cc b/source/blender/windowmanager/intern/wm_event_system.cc index f9ed435b7c5..cf9739b5b20 100644 --- a/source/blender/windowmanager/intern/wm_event_system.cc +++ b/source/blender/windowmanager/intern/wm_event_system.cc @@ -883,7 +883,7 @@ static void wm_event_handler_ui_cancel(bContext *C) * Access to #wmWindowManager.reports * \{ */ -void WM_report_banner_show(void) +void WM_report_banner_show() { wmWindowManager *wm = static_cast(G_MAIN->wm.first); ReportList *wm_reports = &wm->reports; diff --git a/source/blender/windowmanager/intern/wm_files.cc b/source/blender/windowmanager/intern/wm_files.cc index a612cd6fdbd..f37d11b12de 100644 --- a/source/blender/windowmanager/intern/wm_files.cc +++ b/source/blender/windowmanager/intern/wm_files.cc @@ -137,9 +137,9 @@ static RecentFile *wm_file_history_find(const char *filepath); static void wm_history_file_free(RecentFile *recent); -static void wm_history_files_free(void); -static void wm_history_file_update(void); -static void wm_history_file_write(void); +static void wm_history_files_free(); +static void wm_history_file_update(); +static void wm_history_file_write(); static void wm_test_autorun_revert_action_exec(bContext *C); @@ -149,7 +149,7 @@ static CLG_LogRef LOG = {"wm.files"}; /** \name Misc Utility Functions * \{ */ -void WM_file_tag_modified(void) +void WM_file_tag_modified() { wmWindowManager *wm = static_cast(G_MAIN->wm.first); if (wm->file_saved) { @@ -454,7 +454,7 @@ static void wm_file_read_setup_wm_finalize(bContext *C, /** \name Preferences Initialization & Versioning * \{ */ -static void wm_gpu_backend_override_from_userdef(void) +static void wm_gpu_backend_override_from_userdef() { /* Check if GPU backend is already set from the command line arguments. The command line * arguments have higher priority than user preferences. */ @@ -1117,7 +1117,7 @@ void WM_init_state_app_template_set(const char *app_template) } } -const char *WM_init_state_app_template_get(void) +const char *WM_init_state_app_template_get() { return wm_init_state_app_template.override ? wm_init_state_app_template.app_template : nullptr; } @@ -1502,7 +1502,7 @@ void wm_homefile_read_post(bContext *C, const wmFileReadPost_Params *params_file /** \name Blend-File History API * \{ */ -void wm_history_file_read(void) +void wm_history_file_read() { const char *const cfgdir = BKE_appdir_folder_id(BLENDER_USER_CONFIG, nullptr); if (!cfgdir) { @@ -1548,7 +1548,7 @@ static void wm_history_file_free(RecentFile *recent) BLI_freelinkN(&G.recent_files, recent); } -static void wm_history_files_free(void) +static void wm_history_files_free() { LISTBASE_FOREACH_MUTABLE (RecentFile *, recent, &G.recent_files) { wm_history_file_free(recent); @@ -1565,7 +1565,7 @@ static RecentFile *wm_file_history_find(const char *filepath) * Write #BLENDER_HISTORY_FILE as-is, without checking the environment * (that's handled by #wm_history_file_update). */ -static void wm_history_file_write(void) +static void wm_history_file_write() { const char *user_config_dir; char filepath[FILE_MAX]; @@ -1591,7 +1591,7 @@ static void wm_history_file_write(void) /** * Run after saving a file to refresh the #BLENDER_HISTORY_FILE list. */ -static void wm_history_file_update(void) +static void wm_history_file_update() { RecentFile *recent; const char *blendfile_path = BKE_main_blendfile_path_from_global(); @@ -1825,7 +1825,7 @@ static ImBuf *blend_file_thumb_from_camera(const bContext *C, /** \name Write Main Blend-File (internal) * \{ */ -bool write_crash_blend(void) +bool write_crash_blend() { char filepath[FILE_MAX]; @@ -2136,7 +2136,7 @@ void wm_autosave_timer(Main *bmain, wmWindowManager *wm, wmTimer * /*wt*/) wm_autosave_timer_begin(wm); } -void wm_autosave_delete(void) +void wm_autosave_delete() { char filepath[FILE_MAX]; diff --git a/source/blender/windowmanager/intern/wm_init_exit.cc b/source/blender/windowmanager/intern/wm_init_exit.cc index 1e34cae350c..5b185354d0c 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.cc +++ b/source/blender/windowmanager/intern/wm_init_exit.cc @@ -161,7 +161,7 @@ void WM_init_state_start_with_console_set(bool value) */ static bool gpu_is_init = false; -void WM_init_gpu(void) +void WM_init_gpu() { /* Must be called only once. */ BLI_assert(gpu_is_init == false); @@ -415,7 +415,7 @@ void WM_init_splash(bContext *C) } /* free strings of open recent files */ -static void free_openrecent(void) +static void free_openrecent() { LISTBASE_FOREACH (RecentFile *, recent, &G.recent_files) { MEM_freeN(recent->filepath); @@ -426,7 +426,7 @@ static void free_openrecent(void) #ifdef WIN32 /* Read console events until there is a key event. Also returns on any error. */ -static void wait_for_console_key(void) +static void wait_for_console_key() { HANDLE hConsoleInput = GetStdHandle(STD_INPUT_HANDLE); @@ -728,7 +728,7 @@ void WM_exit(bContext *C, const int exit_code) exit(exit_code); } -void WM_script_tag_reload(void) +void WM_script_tag_reload() { UI_interface_tag_script_reload(); }