From c1279768a77d093e1747f4954c9c0a959feefdf0 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Wed, 8 Dec 2021 00:31:20 -0500 Subject: Cleanup: Clang-Tidy modernize-redundant-void-arg --- intern/opencolorio/fallback_impl.cc | 8 ++++---- intern/opencolorio/ocio_capi.cc | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'intern/opencolorio') diff --git a/intern/opencolorio/fallback_impl.cc b/intern/opencolorio/fallback_impl.cc index 9bbc9843e9d..42a2b5bf3b6 100644 --- a/intern/opencolorio/fallback_impl.cc +++ b/intern/opencolorio/fallback_impl.cc @@ -123,7 +123,7 @@ struct FallbackProcessor { MEM_CXX_CLASS_ALLOC_FUNCS("FallbackProcessor"); }; -OCIO_ConstConfigRcPtr *FallbackImpl::getCurrentConfig(void) +OCIO_ConstConfigRcPtr *FallbackImpl::getCurrentConfig() { return CONFIG_DEFAULT; } @@ -132,7 +132,7 @@ void FallbackImpl::setCurrentConfig(const OCIO_ConstConfigRcPtr * /*config*/) { } -OCIO_ConstConfigRcPtr *FallbackImpl::configCreateFromEnv(void) +OCIO_ConstConfigRcPtr *FallbackImpl::configCreateFromEnv() { return NULL; } @@ -502,12 +502,12 @@ void FallbackImpl::OCIO_PackedImageDescRelease(OCIO_PackedImageDesc *id) MEM_freeN(id); } -const char *FallbackImpl::getVersionString(void) +const char *FallbackImpl::getVersionString() { return "fallback"; } -int FallbackImpl::getVersionHex(void) +int FallbackImpl::getVersionHex() { return 0; } diff --git a/intern/opencolorio/ocio_capi.cc b/intern/opencolorio/ocio_capi.cc index 49231dee501..f4071edf6e5 100644 --- a/intern/opencolorio/ocio_capi.cc +++ b/intern/opencolorio/ocio_capi.cc @@ -23,7 +23,7 @@ static IOCIOImpl *impl = NULL; -void OCIO_init(void) +void OCIO_init() { #ifdef WITH_OCIO impl = new OCIOImpl(); @@ -32,18 +32,18 @@ void OCIO_init(void) #endif } -void OCIO_exit(void) +void OCIO_exit() { delete impl; impl = NULL; } -OCIO_ConstConfigRcPtr *OCIO_getCurrentConfig(void) +OCIO_ConstConfigRcPtr *OCIO_getCurrentConfig() { return impl->getCurrentConfig(); } -OCIO_ConstConfigRcPtr *OCIO_configCreateFallback(void) +OCIO_ConstConfigRcPtr *OCIO_configCreateFallback() { delete impl; impl = new FallbackImpl(); @@ -56,7 +56,7 @@ void OCIO_setCurrentConfig(const OCIO_ConstConfigRcPtr *config) impl->setCurrentConfig(config); } -OCIO_ConstConfigRcPtr *OCIO_configCreateFromEnv(void) +OCIO_ConstConfigRcPtr *OCIO_configCreateFromEnv() { return impl->configCreateFromEnv(); } @@ -308,22 +308,22 @@ bool OCIO_gpuDisplayShaderBind(OCIO_ConstConfigRcPtr *config, use_overlay); } -void OCIO_gpuDisplayShaderUnbind(void) +void OCIO_gpuDisplayShaderUnbind() { impl->gpuDisplayShaderUnbind(); } -void OCIO_gpuCacheFree(void) +void OCIO_gpuCacheFree() { impl->gpuCacheFree(); } -const char *OCIO_getVersionString(void) +const char *OCIO_getVersionString() { return impl->getVersionString(); } -int OCIO_getVersionHex(void) +int OCIO_getVersionHex() { return impl->getVersionHex(); } -- cgit v1.2.3