summaryrefslogtreecommitdiffstats
path: root/Vector.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-04 17:55:08 +0200
committercgzones <cgzones@googlemail.com>2020-10-07 13:01:53 +0200
commit08d85e61435e43ade490ecef16437f93c0d88bed (patch)
treefd7357e4a53f7786b5001ef128ffa8e473570f00 /Vector.h
parent164051354f11c0426e09e4fa09feeca7de92e619 (diff)
Mark Object classes and Object class fields const
Diffstat (limited to 'Vector.h')
-rw-r--r--Vector.h4
1 files changed, 2 insertions, 2 deletions
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);

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