From 76867ad4c261ba0946bebb1d9d355a6382b5ca65 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 5 Mar 2024 11:21:44 +1100 Subject: [PATCH] Cleanup: redundant "void" in function declarations for C++ --- intern/ghost/GHOST_Path-api.hh | 6 ++--- .../ghost/intern/GHOST_DisplayManagerCocoa.hh | 2 +- .../ghost/intern/GHOST_DisplayManagerWin32.hh | 2 +- intern/ghost/intern/GHOST_DropTargetWin32.hh | 6 ++--- intern/ghost/intern/GHOST_System.hh | 4 +-- intern/ghost/intern/GHOST_SystemWin32.hh | 6 ++--- intern/ghost/intern/GHOST_WindowCocoa.hh | 4 +-- .../blender/asset_system/AS_asset_library.hh | 2 +- source/blender/blenfont/BLF_api.hh | 24 ++++++++--------- .../blender/blenfont/intern/blf_internal.hh | 8 +++--- source/blender/blenkernel/BKE_appdir.hh | 26 +++++++++---------- source/blender/blenkernel/BKE_blender.hh | 8 +++--- source/blender/blenkernel/BKE_cachefile.hh | 4 +-- source/blender/blenkernel/BKE_callbacks.hh | 4 +-- source/blender/blenkernel/BKE_idtype.hh | 2 +- source/blender/blenkernel/BKE_main.hh | 2 +- source/blender/blenkernel/BKE_node.hh | 10 +++---- source/blender/blenkernel/BKE_vfont.hh | 2 +- source/blender/blenkernel/BKE_writeffmpeg.hh | 2 +- source/blender/blenkernel/BKE_writemovie.hh | 2 +- source/blender/blentranslation/BLT_lang.hh | 8 +++--- .../blentranslation/BLT_translation.hh | 10 +++---- source/blender/compositor/COM_compositor.hh | 4 +-- .../draw/engines/select/select_engine.hh | 6 ++--- source/blender/draw/intern/draw_shader.hh | 2 +- .../blender/editors/asset/ED_asset_catalog.hh | 2 +- .../blender/editors/asset/ED_asset_shelf.hh | 4 +-- source/blender/gpu/GPU_select.hh | 12 ++++----- source/blender/imbuf/IMB_colormanagement.hh | 10 +++---- source/blender/imbuf/IMB_imbuf.hh | 8 +++--- source/blender/imbuf/IMB_moviecache.hh | 4 +-- source/blender/imbuf/IMB_openexr.hh | 2 +- source/blender/imbuf/IMB_thumbs.hh | 6 ++--- source/blender/imbuf/intern/IMB_allocimbuf.hh | 12 ++++----- .../intern/IMB_colormanagement_intern.hh | 8 +++--- source/blender/imbuf/intern/IMB_filetype.hh | 8 +++--- source/blender/io/usd/usd.hh | 2 +- 37 files changed, 117 insertions(+), 117 deletions(-) diff --git a/intern/ghost/GHOST_Path-api.hh b/intern/ghost/GHOST_Path-api.hh index 394449eac24..a0ea21dfb21 100644 --- a/intern/ghost/GHOST_Path-api.hh +++ b/intern/ghost/GHOST_Path-api.hh @@ -20,13 +20,13 @@ GHOST_DECLARE_HANDLE(GHOST_SystemPathsHandle); * Creates the one and only instance of the system path access. * \return An indication of success. */ -extern GHOST_TSuccess GHOST_CreateSystemPaths(void); +extern GHOST_TSuccess GHOST_CreateSystemPaths(); /** * Disposes the one and only system. * \return An indication of success. */ -extern GHOST_TSuccess GHOST_DisposeSystemPaths(void); +extern GHOST_TSuccess GHOST_DisposeSystemPaths(); /** * Determine the base dir in which shared resources are located. It will first try to use @@ -57,7 +57,7 @@ extern const char *GHOST_getUserSpecialDir(GHOST_TUserSpecialDirTypes type); * Determine the dir in which the binary file is found. * \return Unsigned char string pointing to binary dir (eg ~/usr/local/bin/). */ -extern const char *GHOST_getBinaryDir(void); +extern const char *GHOST_getBinaryDir(); /** * Add the file to the operating system most recently used files diff --git a/intern/ghost/intern/GHOST_DisplayManagerCocoa.hh b/intern/ghost/intern/GHOST_DisplayManagerCocoa.hh index 81eda5d71e0..99a98ee8cc2 100644 --- a/intern/ghost/intern/GHOST_DisplayManagerCocoa.hh +++ b/intern/ghost/intern/GHOST_DisplayManagerCocoa.hh @@ -24,7 +24,7 @@ class GHOST_DisplayManagerCocoa : public GHOST_DisplayManager { /** * Constructor. */ - GHOST_DisplayManagerCocoa(void); + GHOST_DisplayManagerCocoa(); /** * Returns the number of display devices on this system. diff --git a/intern/ghost/intern/GHOST_DisplayManagerWin32.hh b/intern/ghost/intern/GHOST_DisplayManagerWin32.hh index 254f1da74bc..1b54caf3764 100644 --- a/intern/ghost/intern/GHOST_DisplayManagerWin32.hh +++ b/intern/ghost/intern/GHOST_DisplayManagerWin32.hh @@ -23,7 +23,7 @@ class GHOST_DisplayManagerWin32 : public GHOST_DisplayManager { /** * Constructor. */ - GHOST_DisplayManagerWin32(void); + GHOST_DisplayManagerWin32(); /** * Returns the number of display devices on this system. diff --git a/intern/ghost/intern/GHOST_DropTargetWin32.hh b/intern/ghost/intern/GHOST_DropTargetWin32.hh index 5596144c465..f06fd55efca 100644 --- a/intern/ghost/intern/GHOST_DropTargetWin32.hh +++ b/intern/ghost/intern/GHOST_DropTargetWin32.hh @@ -23,8 +23,8 @@ class GHOST_DropTargetWin32 : public IDropTarget { * methods in IUnknown are the first entries in the VTable for every interface. */ HRESULT __stdcall QueryInterface(REFIID riid, void **ppv_obj); - ULONG __stdcall AddRef(void); - ULONG __stdcall Release(void); + ULONG __stdcall AddRef(); + ULONG __stdcall Release(); /* IDropTarget implementation * + The IDropTarget interface is one of the interfaces you implement to @@ -50,7 +50,7 @@ class GHOST_DropTargetWin32 : public IDropTarget { POINTL pt, DWORD *pdw_effect); HRESULT __stdcall DragOver(DWORD grf_key_state, POINTL pt, DWORD *pdw_effect); - HRESULT __stdcall DragLeave(void); + HRESULT __stdcall DragLeave(); HRESULT __stdcall Drop(IDataObject *p_data_object, DWORD grf_key_state, POINTL pt, diff --git a/intern/ghost/intern/GHOST_System.hh b/intern/ghost/intern/GHOST_System.hh index 83437f45e84..7a85bb143ae 100644 --- a/intern/ghost/intern/GHOST_System.hh +++ b/intern/ghost/intern/GHOST_System.hh @@ -246,7 +246,7 @@ class GHOST_System : public GHOST_ISystem { * \param api: Enum indicating which API to use. */ virtual void setTabletAPI(GHOST_TTabletAPI api); - GHOST_TTabletAPI getTabletAPI(void); + GHOST_TTabletAPI getTabletAPI(); /** * Get the color of the pixel at the current mouse cursor location @@ -332,7 +332,7 @@ class GHOST_System : public GHOST_ISystem { /** * Returns GHOST_kSuccess if the clipboard contains an image. */ - GHOST_TSuccess hasClipboardImage(void) const; + GHOST_TSuccess hasClipboardImage() const; /** * Get image data from the Clipboard diff --git a/intern/ghost/intern/GHOST_SystemWin32.hh b/intern/ghost/intern/GHOST_SystemWin32.hh index 5d6f7a752c3..731ecb8409b 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.hh +++ b/intern/ghost/intern/GHOST_SystemWin32.hh @@ -229,7 +229,7 @@ class GHOST_SystemWin32 : public GHOST_System { /** * Returns GHOST_kSuccess if the clipboard contains an image. */ - GHOST_TSuccess hasClipboardImage(void) const; + GHOST_TSuccess hasClipboardImage() const; /** * Get image data from the Clipboard @@ -451,7 +451,7 @@ class GHOST_SystemWin32 : public GHOST_System { /** * Check current key layout for AltGr */ - inline void handleKeyboardChange(void); + inline void handleKeyboardChange(); /** * Windows call back routine for our window class. @@ -483,7 +483,7 @@ class GHOST_SystemWin32 : public GHOST_System { int m_wheelDeltaAccum; }; -inline void GHOST_SystemWin32::handleKeyboardChange(void) +inline void GHOST_SystemWin32::handleKeyboardChange() { m_keylayout = GetKeyboardLayout(0); /* Get keylayout for current thread. */ int i; diff --git a/intern/ghost/intern/GHOST_WindowCocoa.hh b/intern/ghost/intern/GHOST_WindowCocoa.hh index e773681812a..add896384cd 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.hh +++ b/intern/ghost/intern/GHOST_WindowCocoa.hh @@ -217,7 +217,7 @@ class GHOST_WindowCocoa : public GHOST_Window { */ GHOST_TSuccess endProgressBar(); - void setNativePixelSize(void); + void setNativePixelSize(); GHOST_TSuccess beginFullScreen() const { @@ -240,7 +240,7 @@ class GHOST_WindowCocoa : public GHOST_Window { { m_immediateDraw = value; } - bool getImmediateDraw(void) const + bool getImmediateDraw() const { return m_immediateDraw; } diff --git a/source/blender/asset_system/AS_asset_library.hh b/source/blender/asset_system/AS_asset_library.hh index f12bf81fefe..5a26beae3e8 100644 --- a/source/blender/asset_system/AS_asset_library.hh +++ b/source/blender/asset_system/AS_asset_library.hh @@ -260,7 +260,7 @@ blender::asset_system::AssetLibrary *AS_asset_library_load(const char *name, const char *library_dirpath); /** Return whether any loaded AssetLibrary has unsaved changes to its catalogs. */ -bool AS_asset_library_has_any_unsaved_catalogs(void); +bool AS_asset_library_has_any_unsaved_catalogs(); /** * An asset library can include local IDs (IDs in the current file). Their pointers need to be diff --git a/source/blender/blenfont/BLF_api.hh b/source/blender/blenfont/BLF_api.hh index 082f51173ea..305a936a38e 100644 --- a/source/blender/blenfont/BLF_api.hh +++ b/source/blender/blenfont/BLF_api.hh @@ -29,21 +29,21 @@ struct ColorManagedDisplay; struct ResultBLF; struct rcti; -int BLF_init(void); -void BLF_exit(void); +int BLF_init(); +void BLF_exit(); /** * Close any user-loaded fonts that are not used by the Interface. Call when * loading new blend files so that the old fonts are not still taking resources. */ -void BLF_reset_fonts(void); +void BLF_reset_fonts(); -void BLF_cache_clear(void); +void BLF_cache_clear(); /** * Optional cache flushing function, called before #blf_batch_draw. */ -void BLF_cache_flush_set_fn(void (*cache_flush_fn)(void)); +void BLF_cache_flush_set_fn(void (*cache_flush_fn)()); /** * Loads a font, or returns an already loaded font and increments its reference count. @@ -65,7 +65,7 @@ void BLF_unload_mem(const char *name) ATTR_NONNULL(1); #endif void BLF_unload_id(int fontid); -void BLF_unload_all(void); +void BLF_unload_all(); char *BLF_display_name_from_file(const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); @@ -136,9 +136,9 @@ void BLF_matrix(int fontid, const float m[16]); * Batch draw-calls together as long as * the model-view matrix and the font remain unchanged. */ -void BLF_batch_draw_begin(void); -void BLF_batch_draw_flush(void); -void BLF_batch_draw_end(void); +void BLF_batch_draw_begin(); +void BLF_batch_draw_flush(); +void BLF_batch_draw_end(); /** * Draw the string using the current font. @@ -331,7 +331,7 @@ void BLF_default_set(int fontid); /** * Get default font ID so we can pass it to other functions. */ -int BLF_default(void); +int BLF_default(); /** * Draw the string using the default font, size and DPI. */ @@ -344,13 +344,13 @@ void BLF_draw_default_shadowed(float x, float y, float z, const char *str, size_ /** * Set size and DPI, and return default font ID. */ -int BLF_set_default(void); +int BLF_set_default(); /* `blf_font_default.cc` */ int BLF_load_default(bool unique); int BLF_load_mono_default(bool unique); -void BLF_load_font_stack(void); +void BLF_load_font_stack(); #ifndef NDEBUG void BLF_state_print(int fontid); diff --git a/source/blender/blenfont/intern/blf_internal.hh b/source/blender/blenfont/intern/blf_internal.hh index b6f93a88cd6..85775454f9f 100644 --- a/source/blender/blenfont/intern/blf_internal.hh +++ b/source/blender/blenfont/intern/blf_internal.hh @@ -52,7 +52,7 @@ struct rcti; extern struct FontBLF *global_font[BLF_MAX_FONT]; void blf_batch_draw_begin(struct FontBLF *font); -void blf_batch_draw(void); +void blf_batch_draw(); /** * Some font have additional file with metrics information, @@ -60,8 +60,8 @@ void blf_batch_draw(void); */ char *blf_dir_metrics_search(const char *filepath); -int blf_font_init(void); -void blf_font_exit(void); +int blf_font_init(); +void blf_font_exit(); bool blf_font_id_is_valid(int fontid); @@ -77,7 +77,7 @@ bool blf_ensure_face(struct FontBLF *font); void blf_ensure_size(struct FontBLF *font); void blf_draw_buffer__start(struct FontBLF *font); -void blf_draw_buffer__end(void); +void blf_draw_buffer__end(); struct FontBLF *blf_font_new_from_filepath(const char *filepath); struct FontBLF *blf_font_new_from_mem(const char *name, const unsigned char *mem, size_t mem_size); diff --git a/source/blender/blenkernel/BKE_appdir.hh b/source/blender/blenkernel/BKE_appdir.hh index cce903ec2c6..aee08f0a9c0 100644 --- a/source/blender/blenkernel/BKE_appdir.hh +++ b/source/blender/blenkernel/BKE_appdir.hh @@ -28,8 +28,8 @@ struct ListBase; * Without this any callers to this module that run early on, * will miss out on changes from parsing arguments. */ -void BKE_appdir_init(void); -void BKE_appdir_exit(void); +void BKE_appdir_init(); +void BKE_appdir_exit(); /** * Get the folder that's the "natural" starting point for browsing files on an OS. @@ -39,15 +39,15 @@ void BKE_appdir_exit(void); * \note On Windows `Users/{MyUserName}/Documents` is used as it's the default location to save * documents. */ -const char *BKE_appdir_folder_default(void) ATTR_WARN_UNUSED_RESULT; -const char *BKE_appdir_folder_root(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; -const char *BKE_appdir_folder_default_or_root(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; +const char *BKE_appdir_folder_default() ATTR_WARN_UNUSED_RESULT; +const char *BKE_appdir_folder_root() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; +const char *BKE_appdir_folder_default_or_root() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; /** * Get the user's home directory, i.e. * - Unix: `$HOME` * - Windows: `%userprofile%` */ -const char *BKE_appdir_folder_home(void); +const char *BKE_appdir_folder_home(); /** * Get the user's document directory, i.e. * - Linux: `$HOME/Documents` @@ -104,11 +104,11 @@ std::optional BKE_appdir_resource_path_id(int folder_id, bool check * Check if this is an install with user files kept together * with the Blender executable and its installation files. */ -bool BKE_appdir_app_is_portable_install(void); +bool BKE_appdir_app_is_portable_install(); /** * Return true if templates exist */ -bool BKE_appdir_app_template_any(void); +bool BKE_appdir_app_template_any(); bool BKE_appdir_app_template_id_search(const char *app_template, char *path, size_t path_maxncpy) ATTR_NONNULL(1); bool BKE_appdir_app_template_has_userpref(const char *app_template) ATTR_NONNULL(1); @@ -122,11 +122,11 @@ void BKE_appdir_program_path_init(const char *argv0) ATTR_NONNULL(1); /** * Path to executable */ -const char *BKE_appdir_program_path(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; +const char *BKE_appdir_program_path() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; /** * Path to directory of executable */ -const char *BKE_appdir_program_dir(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; +const char *BKE_appdir_program_dir() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; /** * Gets a good default directory for fonts. @@ -149,15 +149,15 @@ void BKE_tempdir_init(const char *userdir); /** * Path to persistent temporary directory (with trailing slash) */ -const char *BKE_tempdir_base(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; +const char *BKE_tempdir_base() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; /** * Path to temporary directory (with trailing slash) */ -const char *BKE_tempdir_session(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; +const char *BKE_tempdir_session() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL; /** * Delete content of this instance's temp dir. */ -void BKE_tempdir_session_purge(void); +void BKE_tempdir_session_purge(); /* folder_id */ enum { diff --git a/source/blender/blenkernel/BKE_blender.hh b/source/blender/blenkernel/BKE_blender.hh index e5f6dd11c14..8e442ce6c4b 100644 --- a/source/blender/blenkernel/BKE_blender.hh +++ b/source/blender/blenkernel/BKE_blender.hh @@ -16,10 +16,10 @@ struct UserDef; /** * Only to be called on exit Blender. */ -void BKE_blender_free(void); +void BKE_blender_free(); -void BKE_blender_globals_init(void); -void BKE_blender_globals_clear(void); +void BKE_blender_globals_init(); +void BKE_blender_globals_clear(); /** Replace current global Main by the given one, freeing existing one. */ void BKE_blender_globals_main_replace(Main *bmain); @@ -53,4 +53,4 @@ void BKE_blender_userdef_data_free(UserDef *userdef, bool clear_fonts); /* Blenders' own atexit (avoids leaking) */ void BKE_blender_atexit_register(void (*func)(void *user_data), void *user_data); void BKE_blender_atexit_unregister(void (*func)(void *user_data), const void *user_data); -void BKE_blender_atexit(void); +void BKE_blender_atexit(); diff --git a/source/blender/blenkernel/BKE_cachefile.hh b/source/blender/blenkernel/BKE_cachefile.hh index 7b51c920b89..34009c05f8d 100644 --- a/source/blender/blenkernel/BKE_cachefile.hh +++ b/source/blender/blenkernel/BKE_cachefile.hh @@ -16,8 +16,8 @@ struct Main; struct Object; struct Scene; -void BKE_cachefiles_init(void); -void BKE_cachefiles_exit(void); +void BKE_cachefiles_init(); +void BKE_cachefiles_exit(); void *BKE_cachefile_add(Main *bmain, const char *name); diff --git a/source/blender/blenkernel/BKE_callbacks.hh b/source/blender/blenkernel/BKE_callbacks.hh index 47fe6b534ee..97c85d27ca8 100644 --- a/source/blender/blenkernel/BKE_callbacks.hh +++ b/source/blender/blenkernel/BKE_callbacks.hh @@ -129,8 +129,8 @@ void BKE_callback_exec_string(Main *bmain, eCbEvent evt, const char *str); void BKE_callback_add(bCallbackFuncStore *funcstore, eCbEvent evt); void BKE_callback_remove(bCallbackFuncStore *funcstore, eCbEvent evt); -void BKE_callback_global_init(void); +void BKE_callback_global_init(); /** * Call on application exit. */ -void BKE_callback_global_finalize(void); +void BKE_callback_global_finalize(); diff --git a/source/blender/blenkernel/BKE_idtype.hh b/source/blender/blenkernel/BKE_idtype.hh index 50ef2d8fd9a..25d2a5ef22d 100644 --- a/source/blender/blenkernel/BKE_idtype.hh +++ b/source/blender/blenkernel/BKE_idtype.hh @@ -276,7 +276,7 @@ extern IDTypeInfo IDType_ID_LINK_PLACEHOLDER; /* ********** Helpers/Utils API. ********** */ /* Module initialization. */ -void BKE_idtype_init(void); +void BKE_idtype_init(); /* General helpers. */ const IDTypeInfo *BKE_idtype_get_info_from_idtype_index(const int idtype_index); diff --git a/source/blender/blenkernel/BKE_main.hh b/source/blender/blenkernel/BKE_main.hh index 522d92c5ef1..ec0f512620c 100644 --- a/source/blender/blenkernel/BKE_main.hh +++ b/source/blender/blenkernel/BKE_main.hh @@ -257,7 +257,7 @@ struct Main { * \note Always generate a non-global Main, use #BKE_blender_globals_main_replace to put a newly * created one in `G_MAIN`. */ -Main *BKE_main_new(void); +Main *BKE_main_new(); void BKE_main_free(Main *mainvar); /** Struct packaging log/report info about a Main merge result. */ diff --git a/source/blender/blenkernel/BKE_node.hh b/source/blender/blenkernel/BKE_node.hh index 595b5c1c3d3..02af3368ef6 100644 --- a/source/blender/blenkernel/BKE_node.hh +++ b/source/blender/blenkernel/BKE_node.hh @@ -474,7 +474,7 @@ struct bNodeTreeType *ntreeTypeFind(const char *idname); void ntreeTypeAdd(struct bNodeTreeType *nt); void ntreeTypeFreeLink(const struct bNodeTreeType *nt); bool ntreeIsRegistered(const struct bNodeTree *ntree); -struct GHashIterator *ntreeTypeGetIterator(void); +struct GHashIterator *ntreeTypeGetIterator(); /* Helper macros for iterating over tree types. */ #define NODE_TREE_TYPES_BEGIN(ntype) \ @@ -559,7 +559,7 @@ const char *nodeTypeFindAlias(const char *idname); void nodeRegisterType(struct bNodeType *ntype); void nodeUnregisterType(struct bNodeType *ntype); void nodeRegisterAlias(struct bNodeType *nt, const char *alias); -struct GHashIterator *nodeTypeGetIterator(void); +struct GHashIterator *nodeTypeGetIterator(); /* Helper macros for iterating over node types. */ #define NODE_TYPES_BEGIN(ntype) \ @@ -579,7 +579,7 @@ struct bNodeSocketType *nodeSocketTypeFind(const char *idname); void nodeRegisterSocketType(struct bNodeSocketType *stype); void nodeUnregisterSocketType(struct bNodeSocketType *stype); bool nodeSocketIsRegistered(const struct bNodeSocket *sock); -struct GHashIterator *nodeSocketTypeGetIterator(void); +struct GHashIterator *nodeSocketTypeGetIterator(); const char *nodeSocketTypeLabel(const bNodeSocketType *stype); const char *nodeStaticSocketType(int type, int subtype); @@ -1380,8 +1380,8 @@ void BKE_nodetree_remove_layer_n(struct bNodeTree *ntree, struct Scene *scene, i /** \} */ -void BKE_node_system_init(void); -void BKE_node_system_exit(void); +void BKE_node_system_init(); +void BKE_node_system_exit(); namespace blender::bke { diff --git a/source/blender/blenkernel/BKE_vfont.hh b/source/blender/blenkernel/BKE_vfont.hh index f79e6caab50..9135e0b14e3 100644 --- a/source/blender/blenkernel/BKE_vfont.hh +++ b/source/blender/blenkernel/BKE_vfont.hh @@ -121,7 +121,7 @@ void BKE_vfont_build_char(Curve *cu, int BKE_vfont_select_get(Object *ob, int *r_start, int *r_end); void BKE_vfont_select_clamp(Object *ob); -void BKE_vfont_clipboard_free(void); +void BKE_vfont_clipboard_free(); void BKE_vfont_clipboard_set(const char32_t *text_buf, const CharInfo *info_buf, size_t len); void BKE_vfont_clipboard_get(char32_t **r_text_buf, CharInfo **r_info_buf, diff --git a/source/blender/blenkernel/BKE_writeffmpeg.hh b/source/blender/blenkernel/BKE_writeffmpeg.hh index 8086cea58c9..2a7f78fd66f 100644 --- a/source/blender/blenkernel/BKE_writeffmpeg.hh +++ b/source/blender/blenkernel/BKE_writeffmpeg.hh @@ -68,7 +68,7 @@ void BKE_ffmpeg_preset_set(RenderData *rd, int preset); void BKE_ffmpeg_image_type_verify(RenderData *rd, const ImageFormatData *imf); bool BKE_ffmpeg_alpha_channel_is_supported(const RenderData *rd); -void *BKE_ffmpeg_context_create(void); +void *BKE_ffmpeg_context_create(); void BKE_ffmpeg_context_free(void *context_v); void BKE_ffmpeg_exit(); diff --git a/source/blender/blenkernel/BKE_writemovie.hh b/source/blender/blenkernel/BKE_writemovie.hh index 89c5e021529..f8a14fc971b 100644 --- a/source/blender/blenkernel/BKE_writemovie.hh +++ b/source/blender/blenkernel/BKE_writemovie.hh @@ -39,7 +39,7 @@ struct bMovieHandle { bool preview, const char *suffix); - void *(*context_create)(void); + void *(*context_create)(); void (*context_free)(void *context_v); }; diff --git a/source/blender/blentranslation/BLT_lang.hh b/source/blender/blentranslation/BLT_lang.hh index aec72895605..6f11f77d2b9 100644 --- a/source/blender/blentranslation/BLT_lang.hh +++ b/source/blender/blentranslation/BLT_lang.hh @@ -14,15 +14,15 @@ struct EnumPropertyItem; * the case for Linux, Win and Mac. * Also dynamically builds locales and locales' menu from "languages" text file. */ -void BLT_lang_init(void); +void BLT_lang_init(); /* Free languages and locales_menu arrays created by BLT_lang_init. */ -void BLT_lang_free(void); +void BLT_lang_free(); /* Set the current locale. */ void BLT_lang_set(const char *); /* Get the current locale ([partial] ISO code, e.g. `pt_BR`). */ -const char *BLT_lang_get(void); +const char *BLT_lang_get(); /* Get locale's elements (if relevant pointer is not NULL and element actually exists, e.g. * if there is no variant, *variant and *language_variant will always be NULL). @@ -46,4 +46,4 @@ void BLT_lang_locale_explode(const char *locale, char **language_variant); /* Get EnumPropertyItem's for translations menu. */ -EnumPropertyItem *BLT_lang_RNA_enum_properties(void); +EnumPropertyItem *BLT_lang_RNA_enum_properties(); diff --git a/source/blender/blentranslation/BLT_translation.hh b/source/blender/blentranslation/BLT_translation.hh index 677ee3ce9b2..1ecb53812ee 100644 --- a/source/blender/blentranslation/BLT_translation.hh +++ b/source/blender/blentranslation/BLT_translation.hh @@ -21,11 +21,11 @@ const char *BLT_pgettext(const char *msgctxt, const char *msgid); * - tooltips only include the popup tooltips when hovering a button. * - report is for longer, additional information displayed in the UI, such as error messages. * - new_dataname is the actual user-created data such as objects, meshes, etc. */ -bool BLT_translate(void); -bool BLT_translate_iface(void); -bool BLT_translate_tooltips(void); -bool BLT_translate_reports(void); -bool BLT_translate_new_dataname(void); +bool BLT_translate(); +bool BLT_translate_iface(); +bool BLT_translate_tooltips(); +bool BLT_translate_reports(); +bool BLT_translate_new_dataname(); const char *BLT_translate_do(const char *msgctxt, const char *msgid); const char *BLT_translate_do_iface(const char *msgctxt, const char *msgid); const char *BLT_translate_do_tooltip(const char *msgctxt, const char *msgid); diff --git a/source/blender/compositor/COM_compositor.hh b/source/blender/compositor/COM_compositor.hh index a061e0a9bdd..fb8408b80ef 100644 --- a/source/blender/compositor/COM_compositor.hh +++ b/source/blender/compositor/COM_compositor.hh @@ -113,10 +113,10 @@ void COM_execute(Render *render, * \brief Deinitialize the compositor caches and allocated memory. * Use COM_clear_caches to only free the caches. */ -void COM_deinitialize(void); +void COM_deinitialize(); /** * \brief Clear all compositor caches. (Compositor system will still remain available). * To deinitialize the compositor use the COM_deinitialize method. */ -// void COM_clear_caches(void); // NOT YET WRITTEN +// void COM_clear_caches(); // NOT YET WRITTEN diff --git a/source/blender/draw/engines/select/select_engine.hh b/source/blender/draw/engines/select/select_engine.hh index c2a80c25bae..92a445e0f9b 100644 --- a/source/blender/draw/engines/select/select_engine.hh +++ b/source/blender/draw/engines/select/select_engine.hh @@ -19,9 +19,9 @@ extern RenderEngineType DRW_engine_viewport_select_type; extern DrawEngineType draw_engine_debug_select_type; #endif -struct SELECTID_Context *DRW_select_engine_context_get(void); -struct GPUFrameBuffer *DRW_engine_select_framebuffer_get(void); -struct GPUTexture *DRW_engine_select_texture_get(void); +struct SELECTID_Context *DRW_select_engine_context_get(); +struct GPUFrameBuffer *DRW_engine_select_framebuffer_get(); +struct GPUTexture *DRW_engine_select_texture_get(); /* select_instance.cc */ diff --git a/source/blender/draw/intern/draw_shader.hh b/source/blender/draw/intern/draw_shader.hh index fb9349680b8..6d4c6c010b7 100644 --- a/source/blender/draw/intern/draw_shader.hh +++ b/source/blender/draw/intern/draw_shader.hh @@ -26,4 +26,4 @@ GPUShader *DRW_shader_draw_view_finalize_get(); GPUShader *DRW_shader_draw_resource_finalize_get(); GPUShader *DRW_shader_draw_command_generate_get(); -void DRW_shaders_free(void); +void DRW_shaders_free(); diff --git a/source/blender/editors/asset/ED_asset_catalog.hh b/source/blender/editors/asset/ED_asset_catalog.hh index 6a0312024ba..97eb7dc6a5f 100644 --- a/source/blender/editors/asset/ED_asset_catalog.hh +++ b/source/blender/editors/asset/ED_asset_catalog.hh @@ -34,7 +34,7 @@ void catalogs_save_from_main_path(asset_system::AssetLibrary *library, const Mai * and as such ignores the per asset library #catalogs_read_only(). */ void catalogs_set_save_catalogs_when_file_is_saved(bool should_save); -bool catalogs_get_save_catalogs_when_file_is_saved(void); +bool catalogs_get_save_catalogs_when_file_is_saved(); /** * Returns if the catalogs of \a library are allowed to be editable, or if the UI should forbid diff --git a/source/blender/editors/asset/ED_asset_shelf.hh b/source/blender/editors/asset/ED_asset_shelf.hh index 4287614b7cb..5906efdf2ee 100644 --- a/source/blender/editors/asset/ED_asset_shelf.hh +++ b/source/blender/editors/asset/ED_asset_shelf.hh @@ -47,12 +47,12 @@ void region_layout(const bContext *C, ARegion *region); void region_draw(const bContext *C, ARegion *region); void region_blend_read_data(BlendDataReader *reader, ARegion *region); void region_blend_write(BlendWriter *writer, ARegion *region); -int region_prefsizey(void); +int region_prefsizey(); void header_region_init(wmWindowManager *wm, ARegion *region); void header_region(const bContext *C, ARegion *region); void header_region_listen(const wmRegionListenerParams *params); -int header_region_size(void); +int header_region_size(); void header_regiontype_register(ARegionType *region_type, const int space_type); /** \} */ diff --git a/source/blender/gpu/GPU_select.hh b/source/blender/gpu/GPU_select.hh index 72f7396d918..fd1d9de1610 100644 --- a/source/blender/gpu/GPU_select.hh +++ b/source/blender/gpu/GPU_select.hh @@ -70,20 +70,20 @@ void GPU_select_begin_next(GPUSelectBuffer *buffer, * \warning We rely on the order of object rendering on passes to be the same for this to work. */ bool GPU_select_load_id(unsigned int id); -void GPU_select_finalize(void); +void GPU_select_finalize(); /** * Cleanup and flush selection results to buffer. * Return number of hits and hits in buffer. * if \a dopass is true, we will do a second pass with occlusion queries to get the closest hit. */ -unsigned int GPU_select_end(void); +unsigned int GPU_select_end(); /* Cache selection region. */ -bool GPU_select_is_cached(void); -void GPU_select_cache_begin(void); -void GPU_select_cache_load_id(void); -void GPU_select_cache_end(void); +bool GPU_select_is_cached(); +void GPU_select_cache_begin(); +void GPU_select_cache_load_id(); +void GPU_select_cache_end(); /* Utilities. */ diff --git a/source/blender/imbuf/IMB_colormanagement.hh b/source/blender/imbuf/IMB_colormanagement.hh index 41433d204b7..db3b018f7fe 100644 --- a/source/blender/imbuf/IMB_colormanagement.hh +++ b/source/blender/imbuf/IMB_colormanagement.hh @@ -83,7 +83,7 @@ BLI_INLINE void IMB_colormanagement_aces_to_scene_linear(float scene_linear[3], const float aces[3]); BLI_INLINE void IMB_colormanagement_scene_linear_to_aces(float aces[3], const float scene_linear[3]); -const float *IMB_colormanagement_get_xyz_to_scene_linear(void); +const float *IMB_colormanagement_get_xyz_to_scene_linear(); /** \} */ @@ -300,12 +300,12 @@ void IMB_display_buffer_release(void *cache_handle); int IMB_colormanagement_display_get_named_index(const char *name); const char *IMB_colormanagement_display_get_indexed_name(int index); -const char *IMB_colormanagement_display_get_default_name(void); +const char *IMB_colormanagement_display_get_default_name(); /** * Used by performance-critical pixel processing areas, such as color widgets. */ ColorManagedDisplay *IMB_colormanagement_display_get_named(const char *name); -const char *IMB_colormanagement_display_get_none_name(void); +const char *IMB_colormanagement_display_get_none_name(); const char *IMB_colormanagement_display_get_default_view_transform_name( ColorManagedDisplay *display); @@ -326,7 +326,7 @@ const char *IMB_colormanagement_view_get_indexed_name(int index); int IMB_colormanagement_look_get_named_index(const char *name); const char *IMB_colormanagement_look_get_indexed_name(int index); -const char *IMB_colormanagement_look_get_default_name(void); +const char *IMB_colormanagement_look_get_default_name(); const char *IMB_colormanagement_look_validate_for_view(const char *view_name, const char *look_name); @@ -483,7 +483,7 @@ bool IMB_colormanagement_setup_glsl_draw_from_space_ctx(const bContext *C, /** * Finish GLSL-based display space conversion. */ -void IMB_colormanagement_finish_glsl_draw(void); +void IMB_colormanagement_finish_glsl_draw(); /** \} */ diff --git a/source/blender/imbuf/IMB_imbuf.hh b/source/blender/imbuf/IMB_imbuf.hh index b0b5831be32..fb9bfdd5cc9 100644 --- a/source/blender/imbuf/IMB_imbuf.hh +++ b/source/blender/imbuf/IMB_imbuf.hh @@ -60,8 +60,8 @@ struct GSet; struct ImageFormatData; struct Stereo3dFormat; -void IMB_init(void); -void IMB_exit(void); +void IMB_init(); +void IMB_exit(); ImBuf *IMB_ibImageFromMemory(const unsigned char *mem, size_t size, @@ -674,8 +674,8 @@ void IMB_transform(const ImBuf *src, /* FFMPEG */ -void IMB_ffmpeg_init(void); -const char *IMB_ffmpeg_last_error(void); +void IMB_ffmpeg_init(); +const char *IMB_ffmpeg_last_error(); GPUTexture *IMB_create_gpu_texture(const char *name, ImBuf *ibuf, diff --git a/source/blender/imbuf/IMB_moviecache.hh b/source/blender/imbuf/IMB_moviecache.hh index 5596ea4c9d3..727c5c4352e 100644 --- a/source/blender/imbuf/IMB_moviecache.hh +++ b/source/blender/imbuf/IMB_moviecache.hh @@ -27,8 +27,8 @@ using MovieCacheGetPriorityDataFP = void *(*)(void *userkey); using MovieCacheGetItemPriorityFP = int (*)(void *last_userkey, void *priority_data); using MovieCachePriorityDeleterFP = void (*)(void *priority_data); -void IMB_moviecache_init(void); -void IMB_moviecache_destruct(void); +void IMB_moviecache_init(); +void IMB_moviecache_destruct(); MovieCache *IMB_moviecache_create(const char *name, int keysize, diff --git a/source/blender/imbuf/IMB_openexr.hh b/source/blender/imbuf/IMB_openexr.hh index 8e8e8e2a142..ceda7cb9dbe 100644 --- a/source/blender/imbuf/IMB_openexr.hh +++ b/source/blender/imbuf/IMB_openexr.hh @@ -20,7 +20,7 @@ struct StampData; -void *IMB_exr_get_handle(void); +void *IMB_exr_get_handle(); void *IMB_exr_get_handle_name(const char *name); /** diff --git a/source/blender/imbuf/IMB_thumbs.hh b/source/blender/imbuf/IMB_thumbs.hh index ab13e55a92f..8d95adcb225 100644 --- a/source/blender/imbuf/IMB_thumbs.hh +++ b/source/blender/imbuf/IMB_thumbs.hh @@ -78,7 +78,7 @@ ImBuf *IMB_thumb_manage(const char *file_or_lib_path, ThumbSize size, ThumbSourc /** * Create the necessary directories to store the thumbnails. */ -void IMB_thumb_makedirs(void); +void IMB_thumb_makedirs(); /** * Special function for loading a thumbnail embedded into a blend file. @@ -93,7 +93,7 @@ bool IMB_thumb_load_font_get_hash(char *r_hash); /* Threading */ -void IMB_thumb_locks_acquire(void); -void IMB_thumb_locks_release(void); +void IMB_thumb_locks_acquire(); +void IMB_thumb_locks_release(); void IMB_thumb_path_lock(const char *path); void IMB_thumb_path_unlock(const char *path); diff --git a/source/blender/imbuf/intern/IMB_allocimbuf.hh b/source/blender/imbuf/intern/IMB_allocimbuf.hh index dc8fc450432..401662c0d0f 100644 --- a/source/blender/imbuf/intern/IMB_allocimbuf.hh +++ b/source/blender/imbuf/intern/IMB_allocimbuf.hh @@ -9,14 +9,14 @@ struct ImBuf; -void imb_refcounter_lock_init(void); -void imb_refcounter_lock_exit(void); +void imb_refcounter_lock_init(); +void imb_refcounter_lock_exit(); #ifndef WIN32 -void imb_mmap_lock_init(void); -void imb_mmap_lock_exit(void); -void imb_mmap_lock(void); -void imb_mmap_unlock(void); +void imb_mmap_lock_init(); +void imb_mmap_lock_exit(); +void imb_mmap_lock(); +void imb_mmap_unlock(); #else # define imb_mmap_lock_init() # define imb_mmap_lock_exit() diff --git a/source/blender/imbuf/intern/IMB_colormanagement_intern.hh b/source/blender/imbuf/intern/IMB_colormanagement_intern.hh index 833e4c9b020..c700588ecbc 100644 --- a/source/blender/imbuf/intern/IMB_colormanagement_intern.hh +++ b/source/blender/imbuf/intern/IMB_colormanagement_intern.hh @@ -77,13 +77,13 @@ struct ColorManagedLook { /* ** Initialization / De-initialization ** */ -void colormanagement_init(void); -void colormanagement_exit(void); +void colormanagement_init(); +void colormanagement_exit(); void colormanage_cache_free(ImBuf *ibuf); -const char *colormanage_display_get_default_name(void); -ColorManagedDisplay *colormanage_display_get_default(void); +const char *colormanage_display_get_default_name(); +ColorManagedDisplay *colormanage_display_get_default(); ColorManagedDisplay *colormanage_display_add(const char *name); ColorManagedDisplay *colormanage_display_get_named(const char *name); ColorManagedDisplay *colormanage_display_get_indexed(int index); diff --git a/source/blender/imbuf/intern/IMB_filetype.hh b/source/blender/imbuf/intern/IMB_filetype.hh index d485ad9d9eb..ad3196966a8 100644 --- a/source/blender/imbuf/intern/IMB_filetype.hh +++ b/source/blender/imbuf/intern/IMB_filetype.hh @@ -24,9 +24,9 @@ struct ImBuf; struct ImFileType { /** Optional, called once when initializing. */ - void (*init)(void); + void (*init)(); /** Optional, called once when exiting. */ - void (*exit)(void); + void (*exit)(); /** * Check if the data matches this file types 'magic', @@ -67,8 +67,8 @@ extern const ImFileType *IMB_FILE_TYPES_LAST; const ImFileType *IMB_file_type_from_ftype(int ftype); const ImFileType *IMB_file_type_from_ibuf(const ImBuf *ibuf); -void imb_filetypes_init(void); -void imb_filetypes_exit(void); +void imb_filetypes_init(); +void imb_filetypes_exit(); /** \} */ diff --git a/source/blender/io/usd/usd.hh b/source/blender/io/usd/usd.hh index 409a0b32597..e6228079a63 100644 --- a/source/blender/io/usd/usd.hh +++ b/source/blender/io/usd/usd.hh @@ -165,7 +165,7 @@ bool USD_import(bContext *C, bool as_background_job, ReportList *reports); -int USD_get_version(void); +int USD_get_version(); /* USD Import and Mesh Cache interface. */