From a2ee3c3a9f01f5cb2f05f1e84a1b6c1931d9d4a4 Mon Sep 17 00:00:00 2001 From: Manuel Castilla Date: Wed, 13 Oct 2021 23:01:04 +0200 Subject: Cleanup: replace members `m_` prefix by `_` suffix in Compositor To convert old code to the current convention and use a single code style. --- .../compositor/operations/COM_GammaCorrectOperation.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/compositor/operations/COM_GammaCorrectOperation.cc') diff --git a/source/blender/compositor/operations/COM_GammaCorrectOperation.cc b/source/blender/compositor/operations/COM_GammaCorrectOperation.cc index 886ff9d09c2..9a51c789943 100644 --- a/source/blender/compositor/operations/COM_GammaCorrectOperation.cc +++ b/source/blender/compositor/operations/COM_GammaCorrectOperation.cc @@ -24,12 +24,12 @@ GammaCorrectOperation::GammaCorrectOperation() { this->addInputSocket(DataType::Color); this->addOutputSocket(DataType::Color); - m_inputProgram = nullptr; + inputProgram_ = nullptr; flags.can_be_constant = true; } void GammaCorrectOperation::initExecution() { - m_inputProgram = this->getInputSocketReader(0); + inputProgram_ = this->getInputSocketReader(0); } void GammaCorrectOperation::executePixelSampled(float output[4], @@ -38,7 +38,7 @@ void GammaCorrectOperation::executePixelSampled(float output[4], PixelSampler sampler) { float inputColor[4]; - m_inputProgram->readSampled(inputColor, x, y, sampler); + inputProgram_->readSampled(inputColor, x, y, sampler); if (inputColor[3] > 0.0f) { inputColor[0] /= inputColor[3]; inputColor[1] /= inputColor[3]; @@ -88,19 +88,19 @@ void GammaCorrectOperation::update_memory_buffer_partial(MemoryBuffer *output, void GammaCorrectOperation::deinitExecution() { - m_inputProgram = nullptr; + inputProgram_ = nullptr; } GammaUncorrectOperation::GammaUncorrectOperation() { this->addInputSocket(DataType::Color); this->addOutputSocket(DataType::Color); - m_inputProgram = nullptr; + inputProgram_ = nullptr; flags.can_be_constant = true; } void GammaUncorrectOperation::initExecution() { - m_inputProgram = this->getInputSocketReader(0); + inputProgram_ = this->getInputSocketReader(0); } void GammaUncorrectOperation::executePixelSampled(float output[4], @@ -109,7 +109,7 @@ void GammaUncorrectOperation::executePixelSampled(float output[4], PixelSampler sampler) { float inputColor[4]; - m_inputProgram->readSampled(inputColor, x, y, sampler); + inputProgram_->readSampled(inputColor, x, y, sampler); if (inputColor[3] > 0.0f) { inputColor[0] /= inputColor[3]; @@ -158,7 +158,7 @@ void GammaUncorrectOperation::update_memory_buffer_partial(MemoryBuffer *output, void GammaUncorrectOperation::deinitExecution() { - m_inputProgram = nullptr; + inputProgram_ = nullptr; } } // namespace blender::compositor -- cgit v1.2.3