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
diff options
context:
space:
mode:
Diffstat (limited to 'intern/opencolorio')
-rw-r--r--intern/opencolorio/fallback_impl.cc8
-rw-r--r--intern/opencolorio/ocio_capi.cc18
-rw-r--r--intern/opencolorio/ocio_impl.cc4
3 files changed, 15 insertions, 15 deletions
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/opencolorio/ocio_impl.cc b/intern/opencolorio/ocio_impl.cc
index 146d5d1a5a7..058b8f51dd6 100644
--- a/intern/opencolorio/ocio_impl.cc
+++ b/intern/opencolorio/ocio_impl.cc
@@ -580,8 +580,8 @@ void OCIOImpl::cpuProcessorApply_predivide(OCIO_ConstCPUProcessorRcPtr *cpu_proc
assert(img->isFloat());
float *pixels = (float *)img->getData();
- int width = img->getWidth();
- int height = img->getHeight();
+ size_t width = img->getWidth();
+ size_t height = img->getHeight();
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {