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/guardedalloc/intern/leak_detector.cc | 4 ++-- intern/libmv/libmv/multiview/fundamental.cc | 2 +- intern/libmv/libmv/multiview/homography.cc | 2 +- intern/opencolorio/fallback_impl.cc | 8 ++++---- intern/opencolorio/ocio_capi.cc | 18 +++++++++--------- intern/opensubdiv/internal/base/opensubdiv_capi.cc | 8 ++++---- intern/opensubdiv/stub/opensubdiv_stub.cc | 8 ++++---- 7 files changed, 25 insertions(+), 25 deletions(-) (limited to 'intern') diff --git a/intern/guardedalloc/intern/leak_detector.cc b/intern/guardedalloc/intern/leak_detector.cc index 03d54f2e776..d3a3449049d 100644 --- a/intern/guardedalloc/intern/leak_detector.cc +++ b/intern/guardedalloc/intern/leak_detector.cc @@ -65,7 +65,7 @@ class MemLeakPrinter { }; } // namespace -void MEM_init_memleak_detection(void) +void MEM_init_memleak_detection() { /** * This variable is constructed when this function is first called. This should happen as soon as @@ -84,7 +84,7 @@ void MEM_use_memleak_detection(bool enabled) ignore_memleak = !enabled; } -void MEM_enable_fail_on_memleak(void) +void MEM_enable_fail_on_memleak() { fail_on_memleak = true; } diff --git a/intern/libmv/libmv/multiview/fundamental.cc b/intern/libmv/libmv/multiview/fundamental.cc index c8c94ecd7bb..2ad78369761 100644 --- a/intern/libmv/libmv/multiview/fundamental.cc +++ b/intern/libmv/libmv/multiview/fundamental.cc @@ -411,7 +411,7 @@ void FundamentalToEssential(const Mat3& F, Mat3* E) { // Default settings for fundamental estimation which should be suitable // for a wide range of use cases. -EstimateFundamentalOptions::EstimateFundamentalOptions(void) +EstimateFundamentalOptions::EstimateFundamentalOptions() : max_num_iterations(50), expected_average_symmetric_distance(1e-16) { } diff --git a/intern/libmv/libmv/multiview/homography.cc b/intern/libmv/libmv/multiview/homography.cc index 2db2c0cd3d5..30b8d982b86 100644 --- a/intern/libmv/libmv/multiview/homography.cc +++ b/intern/libmv/libmv/multiview/homography.cc @@ -157,7 +157,7 @@ bool Homography2DFromCorrespondencesLinear(const Mat& x1, // Default settings for homography estimation which should be suitable // for a wide range of use cases. -EstimateHomographyOptions::EstimateHomographyOptions(void) +EstimateHomographyOptions::EstimateHomographyOptions() : use_normalization(true), max_num_iterations(50), expected_average_symmetric_distance(1e-16) { 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(); } diff --git a/intern/opensubdiv/internal/base/opensubdiv_capi.cc b/intern/opensubdiv/internal/base/opensubdiv_capi.cc index 430acfd4497..85f8120c76b 100644 --- a/intern/opensubdiv/internal/base/opensubdiv_capi.cc +++ b/intern/opensubdiv/internal/base/opensubdiv_capi.cc @@ -33,17 +33,17 @@ using blender::opensubdiv::GLSLTransformFeedbackDeviceContext; using blender::opensubdiv::OpenCLDeviceContext; using blender::opensubdiv::OpenMPDeviceContext; -void openSubdiv_init(void) +void openSubdiv_init() { // Ensure all OpenGL strings are cached. openSubdiv_getAvailableEvaluators(); } -void openSubdiv_cleanup(void) +void openSubdiv_cleanup() { } -int openSubdiv_getAvailableEvaluators(void) +int openSubdiv_getAvailableEvaluators() { int flags = OPENSUBDIV_EVALUATOR_CPU; @@ -70,7 +70,7 @@ int openSubdiv_getAvailableEvaluators(void) return flags; } -int openSubdiv_getVersionHex(void) +int openSubdiv_getVersionHex() { #if defined(OPENSUBDIV_VERSION_NUMBER) return OPENSUBDIV_VERSION_NUMBER; diff --git a/intern/opensubdiv/stub/opensubdiv_stub.cc b/intern/opensubdiv/stub/opensubdiv_stub.cc index 8c0b204d41a..24bdcbc79ff 100644 --- a/intern/opensubdiv/stub/opensubdiv_stub.cc +++ b/intern/opensubdiv/stub/opensubdiv_stub.cc @@ -20,20 +20,20 @@ #include -void openSubdiv_init(void) +void openSubdiv_init() { } -void openSubdiv_cleanup(void) +void openSubdiv_cleanup() { } -int openSubdiv_getAvailableEvaluators(void) +int openSubdiv_getAvailableEvaluators() { return 0; } -int openSubdiv_getVersionHex(void) +int openSubdiv_getVersionHex() { return 0; } -- cgit v1.2.3