diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-01-31 20:19:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-01-31 20:19:55 +0300 |
commit | 595675ea7aa31814a641e823ae03dfbe405c2edb (patch) | |
tree | a0c9b4f46e8ebbfdc1a08bd40e4c0378ea79fed9 /source | |
parent | 5ac7e23e886361f7d74d5d6367e63b688bcda361 (diff) |
Cleanup: style
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/imbuf/intern/metadata.c | 2 | ||||
-rw-r--r-- | source/blender/imbuf/intern/png.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/metadata.c b/source/blender/imbuf/intern/metadata.c index 885823aa5fe..21185121afc 100644 --- a/source/blender/imbuf/intern/metadata.c +++ b/source/blender/imbuf/intern/metadata.c @@ -72,7 +72,7 @@ bool IMB_metadata_get_field(struct ImBuf *img, const char *key, char *field, con prop = IDP_GetPropertyFromGroup(img->metadata ,key); - if(prop && prop->type == IDP_STRING){ + if (prop && prop->type == IDP_STRING) { BLI_strncpy(field, IDP_String(prop), len); retval = true; } diff --git a/source/blender/imbuf/intern/png.c b/source/blender/imbuf/intern/png.c index 6b31b3e965b..683bdabcd6c 100644 --- a/source/blender/imbuf/intern/png.c +++ b/source/blender/imbuf/intern/png.c @@ -403,7 +403,7 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags) int num_text = 0; for (prop = ibuf->metadata->data.group.first; prop; prop = prop->next) { - if (prop->type == IDP_STRING){ + if (prop->type == IDP_STRING) { num_text++; } } @@ -411,7 +411,7 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags) metadata = MEM_callocN(num_text * sizeof(png_text), "png_metadata"); num_text = 0; for (prop = ibuf->metadata->data.group.first; prop; prop = prop->next) { - if (prop->type == IDP_STRING){ + if (prop->type == IDP_STRING) { metadata[num_text].compression = PNG_TEXT_COMPRESSION_NONE; metadata[num_text].key = prop->name; metadata[num_text].text = IDP_String(prop); |