Mark Object classes and Object class fields const

This commit is contained in:
Christian Göttsche
2020-10-04 17:55:08 +02:00
committed by cgzones
parent 164051354f
commit 08d85e6143
20 changed files with 45 additions and 47 deletions

View File

@ -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);