From 6d78936c43741b74f1226af9c096d7253f8fb266 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 24 Jan 2015 01:59:09 +1100 Subject: cleanup: style --- source/blender/compositor/intern/COM_MemoryBuffer.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'source/blender/compositor/intern/COM_MemoryBuffer.cpp') diff --git a/source/blender/compositor/intern/COM_MemoryBuffer.cpp b/source/blender/compositor/intern/COM_MemoryBuffer.cpp index 58767960cc8..37035c50d2c 100644 --- a/source/blender/compositor/intern/COM_MemoryBuffer.cpp +++ b/source/blender/compositor/intern/COM_MemoryBuffer.cpp @@ -27,15 +27,16 @@ using std::min; using std::max; -static unsigned int determine_num_channels(DataType datatype) { +static unsigned int determine_num_channels(DataType datatype) +{ switch (datatype) { - case COM_DT_VALUE: - return COM_NUM_CHANNELS_VALUE; - case COM_DT_VECTOR: - return COM_NUM_CHANNELS_VECTOR; - case COM_DT_COLOR: - default: - return COM_NUM_CHANNELS_COLOR; + case COM_DT_VALUE: + return COM_NUM_CHANNELS_VALUE; + case COM_DT_VECTOR: + return COM_NUM_CHANNELS_VECTOR; + case COM_DT_COLOR: + default: + return COM_NUM_CHANNELS_COLOR; } } @@ -226,7 +227,7 @@ static void read_ewa_pixel_sampled(void *userdata, int x, int y, float result[4] void MemoryBuffer::readEWA(float *result, const float uv[2], const float derivatives[2][2], PixelSampler sampler) { - BLI_assert(this->m_datatype==COM_DT_COLOR); + BLI_assert(this->m_datatype == COM_DT_COLOR); ReadEWAData data; data.buffer = this; data.sampler = sampler; -- cgit v1.2.3