From 08d85e61435e43ade490ecef16437f93c0d88bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sun, 4 Oct 2020 17:55:08 +0200 Subject: Mark Object classes and Object class fields const --- Vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Vector.h') diff --git a/Vector.h b/Vector.h index e2de5e82..d0d42c6c 100644 --- a/Vector.h +++ b/Vector.h @@ -17,14 +17,14 @@ in the source distribution for its full text. typedef struct Vector_ { Object **array; - ObjectClass* type; + const ObjectClass* type; int arraySize; int growthRate; int items; bool owner; } Vector; -Vector* Vector_new(ObjectClass* type, bool owner, int size); +Vector* Vector_new(const ObjectClass* type, bool owner, int size); void Vector_delete(Vector* this); -- cgit v1.2.3