summaryrefslogtreecommitdiffstats
path: root/Vector.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-15 20:41:35 +0200
committercgzones <cgzones@googlemail.com>2020-10-15 20:45:39 +0200
commit846fe8a71fd8ee5d91b297610e885b93ca039cd6 (patch)
tree3a029c5e1b933a2084b763542854251f2213ece4 /Vector.h
parent3c08fa3c638df1b275d106062e6b3c2dd3950100 (diff)
Mark Vector parameter const for non-modifying functions
Diffstat (limited to 'Vector.h')
-rw-r--r--Vector.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Vector.h b/Vector.h
index 1b599d69..491779b3 100644
--- a/Vector.h
+++ b/Vector.h
@@ -49,8 +49,8 @@ void Vector_set(Vector* this, int idx, void* data_);
#ifndef NDEBUG
Object* Vector_get(Vector* this, int idx);
-int Vector_size(Vector* this);
-int Vector_count(Vector* this);
+int Vector_size(const Vector* this);
+int Vector_count(const Vector* this);
#else /* NDEBUG */
@@ -61,7 +61,7 @@ int Vector_count(Vector* this);
void Vector_add(Vector* this, void* data_);
-int Vector_indexOf(Vector* this, const void* search_, Object_Compare compare);
+int Vector_indexOf(const Vector* this, const void* search_, Object_Compare compare);
void Vector_splice(Vector* this, Vector* from);

© 2014-2024 Faster IT GmbH | imprint | privacy policy