[Bf-blender-cvs] [595675e] master: Cleanup: style

Campbell Barton noreply at git.blender.org
Sat Jan 31 18:20:18 CET 2015


Commit: 595675ea7aa31814a641e823ae03dfbe405c2edb
Author: Campbell Barton
Date:   Sun Feb 1 04:19:43 2015 +1100
Branches: master
https://developer.blender.org/rB595675ea7aa31814a641e823ae03dfbe405c2edb

Cleanup: style

===================================================================

M	source/blender/imbuf/intern/metadata.c
M	source/blender/imbuf/intern/png.c

===================================================================

diff --git a/source/blender/imbuf/intern/metadata.c b/source/blender/imbuf/intern/metadata.c
index 885823a..2118512 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 6b31b3e..683bdab 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);




More information about the Bf-blender-cvs mailing list