style cleanup, brackets in else/if, some indentation.
[blender.git] / source / blender / blenkernel / intern / icons.c
index 533dd78..7203895 100644 (file)
@@ -66,8 +66,7 @@ static void icon_free(void *val)
 {
        Icon* icon = val;
 
-       if (icon)
-       {
+       if (icon) {
                if (icon->drawinfo_free) {              
                        icon->drawinfo_free(icon->drawinfo);
                }
@@ -236,8 +235,7 @@ void BKE_icon_changed(int id)
 
        icon = BLI_ghash_lookup(gIcons, SET_INT_IN_POINTER(id));
        
-       if (icon)
-       {
+       if (icon) {
                PreviewImage *prv = BKE_previewimg_get((ID*)icon->obj);
 
                /* all previews changed */
@@ -302,8 +300,7 @@ void BKE_icon_set(int icon_id, struct Icon* icon)
 
        old_icon = BLI_ghash_lookup(gIcons, SET_INT_IN_POINTER(icon_id));
 
-       if (old_icon)
-       {
+       if (old_icon) {
                printf("BKE_icon_set: Internal error, icon already set: %d\n", icon_id);
                return;
        }