From 846fe8a71fd8ee5d91b297610e885b93ca039cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 15 Oct 2020 20:41:35 +0200 Subject: Mark Vector parameter const for non-modifying functions --- Vector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Vector.h') 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); -- cgit v1.2.3