cleanup: style
[blender-staging.git] / source / blender / compositor / intern / COM_MemoryBuffer.h
index 320de3d67cdeb438dc04bd0c8b612e9dec0eb4ba..e0c542108a125b0b418c4b024c05928ab09c477e 100644 (file)
@@ -215,7 +215,7 @@ public:
                bool clip_y = (extend_y == COM_MB_CLIP && (y < m_rect.ymin || y >= m_rect.ymax));
                if (clip_x || clip_y) {
                        /* clip result outside rect is zero */
-                       memset(result, 0, this->m_num_channels*sizeof(float));
+                       memset(result, 0, this->m_num_channels * sizeof(float));
                }
                else {
                        int u = x;
@@ -223,7 +223,7 @@ public:
                        this->wrap_pixel(u, v, extend_x, extend_y);
                        const int offset = (this->m_width * y + x) * this->m_num_channels;
                        float* buffer = &this->m_buffer[offset];
-                       memcpy(result, buffer, sizeof(float)*this->m_num_channels);
+                       memcpy(result, buffer, sizeof(float) * this->m_num_channels);
                }
        }
 
@@ -240,14 +240,14 @@ public:
                BLI_assert(offset >= 0);
                BLI_assert(offset < this->determineBufferSize() * this->m_num_channels);
                BLI_assert(!(extend_x == COM_MB_CLIP && (u < m_rect.xmin || u >= m_rect.xmax)) &&
-                                  !(extend_y == COM_MB_CLIP && (v < m_rect.ymin || v >= m_rect.ymax)));
+                          !(extend_y == COM_MB_CLIP && (v < m_rect.ymin || v >= m_rect.ymax)));
 #if 0
                /* always true */
                BLI_assert((int)(MEM_allocN_len(this->m_buffer) / sizeof(*this->m_buffer)) ==
                           (int)(this->determineBufferSize() * COM_NUMBER_OF_CHANNELS));
 #endif
-               floatbuffer = &this->m_buffer[offset];
-               memcpy(result, buffer, sizeof(float)*this->m_num_channels);
+               float *buffer = &this->m_buffer[offset];
+               memcpy(result, buffer, sizeof(float) * this->m_num_channels);
        }
        
        void writePixel(int x, int y, const float color[4]);