Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2021-12-08 08:31:20 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-12-08 08:31:20 +0300
commitc1279768a77d093e1747f4954c9c0a959feefdf0 (patch)
tree1def9c880322764b4fe090677dfb66cab0c380d9 /intern
parentcbcd74de226778a9da980c8c6081793452dd5cbc (diff)
Cleanup: Clang-Tidy modernize-redundant-void-arg
Diffstat (limited to 'intern')
-rw-r--r--intern/guardedalloc/intern/leak_detector.cc4
-rw-r--r--intern/libmv/libmv/multiview/fundamental.cc2
-rw-r--r--intern/libmv/libmv/multiview/homography.cc2
-rw-r--r--intern/opencolorio/fallback_impl.cc8
-rw-r--r--intern/opencolorio/ocio_capi.cc18
-rw-r--r--intern/opensubdiv/internal/base/opensubdiv_capi.cc8
-rw-r--r--intern/opensubdiv/stub/opensubdiv_stub.cc8
7 files changed, 25 insertions, 25 deletions
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 <cstddef>
-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;
}