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:
authorManuel Castilla <manzanillawork@gmail.com>2021-10-14 00:00:50 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-10-14 00:41:14 +0300
commitea79efef70da14100b591b50dcada819808f20b6 (patch)
tree4faf296870f1ab27ee33fee2b331fdb6b2d2bec4 /source/blender/compositor/operations/COM_MapRangeOperation.cc
parentecb8a574c752068de9f8d9eb98f54db1569df2f7 (diff)
Cleanup: remove `this->` for `m_` prefixed members in Compositor
For cleaning old code style as new code usually omit it.
Diffstat (limited to 'source/blender/compositor/operations/COM_MapRangeOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_MapRangeOperation.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/source/blender/compositor/operations/COM_MapRangeOperation.cc b/source/blender/compositor/operations/COM_MapRangeOperation.cc
index 82fb033bf24..cdf41290a0a 100644
--- a/source/blender/compositor/operations/COM_MapRangeOperation.cc
+++ b/source/blender/compositor/operations/COM_MapRangeOperation.cc
@@ -28,18 +28,18 @@ MapRangeOperation::MapRangeOperation()
this->addInputSocket(DataType::Value);
this->addInputSocket(DataType::Value);
this->addOutputSocket(DataType::Value);
- this->m_inputOperation = nullptr;
- this->m_useClamp = false;
+ m_inputOperation = nullptr;
+ m_useClamp = false;
flags.can_be_constant = true;
}
void MapRangeOperation::initExecution()
{
- this->m_inputOperation = this->getInputSocketReader(0);
- this->m_sourceMinOperation = this->getInputSocketReader(1);
- this->m_sourceMaxOperation = this->getInputSocketReader(2);
- this->m_destMinOperation = this->getInputSocketReader(3);
- this->m_destMaxOperation = this->getInputSocketReader(4);
+ m_inputOperation = this->getInputSocketReader(0);
+ m_sourceMinOperation = this->getInputSocketReader(1);
+ m_sourceMaxOperation = this->getInputSocketReader(2);
+ m_destMinOperation = this->getInputSocketReader(3);
+ m_destMaxOperation = this->getInputSocketReader(4);
}
/* The code below assumes all data is inside range +- this, and that input buffer is single channel
@@ -56,11 +56,11 @@ void MapRangeOperation::executePixelSampled(float output[4],
float source_min, source_max;
float dest_min, dest_max;
- this->m_inputOperation->readSampled(inputs, x, y, sampler);
- this->m_sourceMinOperation->readSampled(inputs + 1, x, y, sampler);
- this->m_sourceMaxOperation->readSampled(inputs + 2, x, y, sampler);
- this->m_destMinOperation->readSampled(inputs + 3, x, y, sampler);
- this->m_destMaxOperation->readSampled(inputs + 4, x, y, sampler);
+ m_inputOperation->readSampled(inputs, x, y, sampler);
+ m_sourceMinOperation->readSampled(inputs + 1, x, y, sampler);
+ m_sourceMaxOperation->readSampled(inputs + 2, x, y, sampler);
+ m_destMinOperation->readSampled(inputs + 3, x, y, sampler);
+ m_destMaxOperation->readSampled(inputs + 4, x, y, sampler);
value = inputs[0];
source_min = inputs[1];
@@ -84,7 +84,7 @@ void MapRangeOperation::executePixelSampled(float output[4],
value = dest_min;
}
- if (this->m_useClamp) {
+ if (m_useClamp) {
if (dest_max > dest_min) {
CLAMP(value, dest_min, dest_max);
}
@@ -98,11 +98,11 @@ void MapRangeOperation::executePixelSampled(float output[4],
void MapRangeOperation::deinitExecution()
{
- this->m_inputOperation = nullptr;
- this->m_sourceMinOperation = nullptr;
- this->m_sourceMaxOperation = nullptr;
- this->m_destMinOperation = nullptr;
- this->m_destMaxOperation = nullptr;
+ m_inputOperation = nullptr;
+ m_sourceMinOperation = nullptr;
+ m_sourceMaxOperation = nullptr;
+ m_destMinOperation = nullptr;
+ m_destMaxOperation = nullptr;
}
void MapRangeOperation::update_memory_buffer_partial(MemoryBuffer *output,