Cleanup: Style, braces with macros

See https://wiki.blender.org/index.php/Dev:Doc/Code_Style#Braces_with_Macros
This commit is contained in:
Sergey Sharybin 2018-02-15 12:41:35 +01:00
parent c0bbc4abf5
commit 4da6c49613
2 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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)