[Bf-blender-cvs] [4da6c496137] master: Cleanup: Style, braces with macros

Sergey Sharybin noreply at git.blender.org
Thu Feb 15 12:42:12 CET 2018


Commit: 4da6c496137042d4c90292f5567a6702a3df3323
Author: Sergey Sharybin
Date:   Thu Feb 15 12:41:35 2018 +0100
Branches: master
https://developer.blender.org/rB4da6c496137042d4c90292f5567a6702a3df3323

Cleanup: Style, braces with macros

See https://wiki.blender.org/index.php/Dev:Doc/Code_Style#Braces_with_Macros

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

M	source/blender/blenlib/BLI_listbase.h
M	source/blender/editors/animation/anim_markers.c

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

diff --git a/source/blender/blenlib/BLI_listbase.h b/source/blender/blenlib/BLI_listbase.h
index 92fb18bfe43..6be9408ac1e 100644
--- a/source/blender/blenlib/BLI_listbase.h
+++ b/source/blender/blenlib/BLI_listbase.h
@@ -103,7 +103,8 @@ struct LinkData *BLI_genericNodeN(void *data);
  *
  * \code{.c}
  *
- * LISTBASE_CIRCULAR_FORWARD_BEGIN (listbase, item, item_init) {
+ * LISTBASE_CIRCULAR_FORWARD_BEGIN(listbase, item, item_init)
+ * {
  *     ...operate on marker...
  * }
  * LISTBASE_CIRCULAR_FORWARD_END (listbase, item, item_init);
diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c
index fd943109732..031102c9f35 100644
--- a/source/blender/editors/animation/anim_markers.c
+++ b/source/blender/editors/animation/anim_markers.c
@@ -1095,14 +1095,15 @@ static void select_timeline_marker_frame(ListBase *markers, int frame, bool exte
 		}
 	}
 
-	LISTBASE_CIRCULAR_FORWARD_BEGIN (markers, marker, marker_first) {
+	LISTBASE_CIRCULAR_FORWARD_BEGIN(markers, marker, marker_first)
+	{
 		/* this way a not-extend select will always give 1 selected marker */
 		if (marker->frame == frame) {
 			marker->flag ^= SELECT;
 			break;
 		}
 	}
-	LISTBASE_CIRCULAR_FORWARD_END (markers, marker, marker_first);
+	LISTBASE_CIRCULAR_FORWARD_END(markers, marker, marker_first);
 }
 
 static int ed_marker_select(bContext *C, const wmEvent *event, bool extend, bool camera)



More information about the Bf-blender-cvs mailing list