From 4518c0f3e845fc1de58b6824bcc8fb77e594c0f1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 29 Oct 2017 15:42:54 +1100 Subject: Cleanup: const args --- source/blender/blenlib/intern/BLI_heap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/blenlib/intern/BLI_heap.c') diff --git a/source/blender/blenlib/intern/BLI_heap.c b/source/blender/blenlib/intern/BLI_heap.c index d6e8721faa7..84b15ca1cf9 100644 --- a/source/blender/blenlib/intern/BLI_heap.c +++ b/source/blender/blenlib/intern/BLI_heap.c @@ -289,17 +289,17 @@ void BLI_heap_insert_or_update(Heap *heap, HeapNode **node_p, float value, void } -bool BLI_heap_is_empty(Heap *heap) +bool BLI_heap_is_empty(const Heap *heap) { return (heap->size == 0); } -uint BLI_heap_size(Heap *heap) +uint BLI_heap_size(const Heap *heap) { return heap->size; } -HeapNode *BLI_heap_top(Heap *heap) +HeapNode *BLI_heap_top(const Heap *heap) { return heap->tree[0]; } @@ -358,12 +358,12 @@ void BLI_heap_node_value_update_ptr(Heap *heap, HeapNode *node, float value, voi BLI_heap_node_value_update(heap, node, value); } -float BLI_heap_node_value(HeapNode *node) +float BLI_heap_node_value(const HeapNode *node) { return node->value; } -void *BLI_heap_node_ptr(HeapNode *node) +void *BLI_heap_node_ptr(const HeapNode *node) { return node->ptr; } -- cgit v1.2.3