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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-11-26 00:50:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-26 00:50:35 +0300
commit2d52f65c60cf7e166f6cda9186fe1e89a201f9d6 (patch)
treeabc7e4f31b5dcf14bd2a08e140ca55c7cd369de0 /source
parent532c8be9740d5aca31b8e47931465b54a41dac51 (diff)
Cleanup: use const for linklist API
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/BLI_linklist.h4
-rw-r--r--source/blender/blenlib/intern/BLI_linklist.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_linklist.h b/source/blender/blenlib/BLI_linklist.h
index 67cb30e8d17..00d757bdf9d 100644
--- a/source/blender/blenlib/BLI_linklist.h
+++ b/source/blender/blenlib/BLI_linklist.h
@@ -58,8 +58,8 @@ typedef struct LinkNodePair {
LinkNode *list, *last_node;
} LinkNodePair;
-int BLI_linklist_count(LinkNode *list) ATTR_WARN_UNUSED_RESULT;
-int BLI_linklist_index(LinkNode *list, void *ptr) ATTR_WARN_UNUSED_RESULT;
+int BLI_linklist_count(const LinkNode *list) ATTR_WARN_UNUSED_RESULT;
+int BLI_linklist_index(const LinkNode *list, void *ptr) ATTR_WARN_UNUSED_RESULT;
LinkNode *BLI_linklist_find(LinkNode *list, int index) ATTR_WARN_UNUSED_RESULT;
diff --git a/source/blender/blenlib/intern/BLI_linklist.c b/source/blender/blenlib/intern/BLI_linklist.c
index 1da39967945..1500e23d72e 100644
--- a/source/blender/blenlib/intern/BLI_linklist.c
+++ b/source/blender/blenlib/intern/BLI_linklist.c
@@ -41,7 +41,7 @@
#include "BLI_strict_flags.h"
-int BLI_linklist_count(LinkNode *list)
+int BLI_linklist_count(const LinkNode *list)
{
int len;
@@ -51,7 +51,7 @@ int BLI_linklist_count(LinkNode *list)
return len;
}
-int BLI_linklist_index(LinkNode *list, void *ptr)
+int BLI_linklist_index(const LinkNode *list, void *ptr)
{
int index;