diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 17:32:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 17:32:54 +0300 |
commit | 5513da65b24a3ce77b1709acea841475115f3a7a (patch) | |
tree | 20bd4d26f20ac63ebf776cea3a0220c11258f06d /source/blender/blenlib/intern/listbase.c | |
parent | f19ecdeec64506415b9a9f75293df866691bbd28 (diff) |
Cleanup: trailing space for BLI
Diffstat (limited to 'source/blender/blenlib/intern/listbase.c')
-rw-r--r-- | source/blender/blenlib/intern/listbase.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/blenlib/intern/listbase.c b/source/blender/blenlib/intern/listbase.c index 5918b4d3cf9..568448327bd 100644 --- a/source/blender/blenlib/intern/listbase.c +++ b/source/blender/blenlib/intern/listbase.c @@ -308,7 +308,7 @@ void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) listbase->last = newlink; return; } - + /* insert at head of list */ if (prevlink == NULL) { newlink->prev = NULL; @@ -349,7 +349,7 @@ void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) listbase->last = newlink; return; } - + /* insert at end of list */ if (nextlink == NULL) { newlink->prev = listbase->last; @@ -451,7 +451,7 @@ bool BLI_listbase_link_move(ListBase *listbase, void *vlink, int step) void BLI_freelist(ListBase *listbase) { Link *link, *next; - + link = listbase->first; while (link) { next = link->next; @@ -468,7 +468,7 @@ void BLI_freelist(ListBase *listbase) void BLI_freelistN(ListBase *listbase) { Link *link, *next; - + link = listbase->first; while (link) { next = link->next; @@ -556,16 +556,16 @@ int BLI_findindex(const ListBase *listbase, const void *vlink) int number = 0; if (vlink == NULL) return -1; - + link = listbase->first; while (link) { if (link == vlink) return number; - + number++; link = link->next; } - + return -1; } @@ -830,13 +830,13 @@ void BLI_listbase_rotate_last(ListBase *lb, void *vlink) LinkData *BLI_genericNodeN(void *data) { LinkData *ld; - + if (data == NULL) return NULL; - + /* create new link, and make it hold the given data */ ld = MEM_callocN(sizeof(LinkData), __func__); ld->data = data; - + return ld; -} +} |