From d37d66bb3a089b9e66c6629a4855560984ac720d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 12 Mar 2021 16:46:55 +0100 Subject: InfoScreen/ProcessList: do not access Vector internals Use wrapper function to encapsulate the Vector structure --- Vector.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Vector.h') diff --git a/Vector.h b/Vector.h index 875f361d..dab94693 100644 --- a/Vector.h +++ b/Vector.h @@ -68,6 +68,10 @@ static inline int Vector_size(const Vector* this) { #endif /* NDEBUG */ +static inline const ObjectClass* Vector_type(const Vector* this) { + return this->type; +} + void Vector_add(Vector* this, void* data_); int Vector_indexOf(const Vector* this, const void* search_, Object_Compare compare); -- cgit v1.2.3