Cleanup: style
authorCampbell Barton <ideasman42@gmail.com>
Thu, 12 Mar 2015 13:07:26 +0000 (00:07 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 12 Mar 2015 13:07:26 +0000 (00:07 +1100)
source/blender/compositor/intern/COM_MemoryBuffer.h
source/blender/makesrna/intern/rna_scene.c

index 322e4bc388bdd024da9279335cda633c0c6aa423..0b5fc21e69e3242dc4a4f235cef78a45e7629c2d 100644 (file)
@@ -222,7 +222,7 @@ public:
                        int v = y;
                        this->wrap_pixel(u, v, extend_x, extend_y);
                        const int offset = (this->m_width * y + x) * this->m_num_channels;
-                       floatbuffer = &this->m_buffer[offset];
+                       float *buffer = &this->m_buffer[offset];
                        memcpy(result, buffer, sizeof(float) * this->m_num_channels);
                }
        }
index a41214a1dab8f14cfb97963e19fe9be8399a00b8..3e7ffcd8cf089ad13ba30dc5455d3cd87f3e0ff9 100644 (file)
@@ -954,12 +954,13 @@ PropertyRNA *UNUSED(prop), bool *r_free)
        EnumPropertyItem *item = NULL;
        int i = 1, totitem = 0;
 
-       if(imf->depth == 16)
+       if (imf->depth == 16)
                return exr_codec_items; /* All compression types are defined for halfs */
 
        for (i = 0; i < R_IMF_EXR_CODEC_MAX; i++) {
-               if((i == R_IMF_EXR_CODEC_B44 || i == R_IMF_EXR_CODEC_B44A))
+               if ((i == R_IMF_EXR_CODEC_B44 || i == R_IMF_EXR_CODEC_B44A)) {
                        continue; /* B44 and B44A are not defined for 32 bit floats */
+               }
 
                RNA_enum_item_add(&item, &totitem, &exr_codec_items[i]);
        }