diff --git a/include/core/PoolArrays.hpp b/include/core/PoolArrays.hpp index 1513c09e..78a370d1 100644 --- a/include/core/PoolArrays.hpp +++ b/include/core/PoolArrays.hpp @@ -106,7 +106,7 @@ public: uint8_t operator [](const int idx); - int size(); + int size() const; ~PoolByteArray(); }; @@ -202,7 +202,7 @@ public: int operator [](const int idx); - int size(); + int size() const; ~PoolIntArray(); }; @@ -298,7 +298,7 @@ public: real_t operator [](const int idx); - int size(); + int size() const; ~PoolRealArray(); }; @@ -394,7 +394,7 @@ public: String operator [](const int idx); - int size(); + int size() const; ~PoolStringArray(); }; @@ -491,7 +491,7 @@ public: Vector2 operator [](const int idx); - int size(); + int size() const; ~PoolVector2Array(); }; @@ -587,7 +587,7 @@ public: Vector3 operator [](const int idx); - int size(); + int size() const; ~PoolVector3Array(); }; @@ -683,7 +683,7 @@ public: Color operator [](const int idx); - int size(); + int size() const; ~PoolColorArray(); }; diff --git a/src/core/PoolArrays.cpp b/src/core/PoolArrays.cpp index 0ea493fb..d66de4ce 100644 --- a/src/core/PoolArrays.cpp +++ b/src/core/PoolArrays.cpp @@ -91,7 +91,7 @@ uint8_t PoolByteArray::operator [](const int idx) return godot::api->godot_pool_byte_array_get(&_godot_array, idx); } -int PoolByteArray::size() +int PoolByteArray::size() const { return godot::api->godot_pool_byte_array_size(&_godot_array); } @@ -185,7 +185,7 @@ int PoolIntArray::operator [](const int idx) return godot::api->godot_pool_int_array_get(&_godot_array, idx); } -int PoolIntArray::size() +int PoolIntArray::size() const { return godot::api->godot_pool_int_array_size(&_godot_array); } @@ -278,7 +278,7 @@ real_t PoolRealArray::operator [](const int idx) return godot::api->godot_pool_real_array_get(&_godot_array, idx); } -int PoolRealArray::size() +int PoolRealArray::size() const { return godot::api->godot_pool_real_array_size(&_godot_array); } @@ -376,7 +376,7 @@ String PoolStringArray::operator [](const int idx) return s; } -int PoolStringArray::size() +int PoolStringArray::size() const { return godot::api->godot_pool_string_array_size(&_godot_array); } @@ -472,7 +472,7 @@ Vector2 PoolVector2Array::operator [](const int idx) return v; } -int PoolVector2Array::size() +int PoolVector2Array::size() const { return godot::api->godot_pool_vector2_array_size(&_godot_array); } @@ -568,7 +568,7 @@ Vector3 PoolVector3Array::operator [](const int idx) return v; } -int PoolVector3Array::size() +int PoolVector3Array::size() const { return godot::api->godot_pool_vector3_array_size(&_godot_array); } @@ -663,7 +663,7 @@ Color PoolColorArray::operator [](const int idx) return v; } -int PoolColorArray::size() +int PoolColorArray::size() const { return godot::api->godot_pool_color_array_size(&_godot_array); }