Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/intern/listbase.c')
-rw-r--r--source/blender/blenlib/intern/listbase.c22
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;
-}
+}