Merge pull request #94 from lupoDharkael/const

Add const qualifier to PoolArray's size()
pull/97/head
Thomas Herzog 2018-02-12 23:49:05 +01:00 committed by GitHub
commit 1394439286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 14 deletions

View File

@ -106,7 +106,7 @@ public:
uint8_t operator [](const int idx); uint8_t operator [](const int idx);
int size(); int size() const;
~PoolByteArray(); ~PoolByteArray();
}; };
@ -202,7 +202,7 @@ public:
int operator [](const int idx); int operator [](const int idx);
int size(); int size() const;
~PoolIntArray(); ~PoolIntArray();
}; };
@ -298,7 +298,7 @@ public:
real_t operator [](const int idx); real_t operator [](const int idx);
int size(); int size() const;
~PoolRealArray(); ~PoolRealArray();
}; };
@ -394,7 +394,7 @@ public:
String operator [](const int idx); String operator [](const int idx);
int size(); int size() const;
~PoolStringArray(); ~PoolStringArray();
}; };
@ -491,7 +491,7 @@ public:
Vector2 operator [](const int idx); Vector2 operator [](const int idx);
int size(); int size() const;
~PoolVector2Array(); ~PoolVector2Array();
}; };
@ -587,7 +587,7 @@ public:
Vector3 operator [](const int idx); Vector3 operator [](const int idx);
int size(); int size() const;
~PoolVector3Array(); ~PoolVector3Array();
}; };
@ -683,7 +683,7 @@ public:
Color operator [](const int idx); Color operator [](const int idx);
int size(); int size() const;
~PoolColorArray(); ~PoolColorArray();
}; };

View File

@ -91,7 +91,7 @@ uint8_t PoolByteArray::operator [](const int idx)
return godot::api->godot_pool_byte_array_get(&_godot_array, 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); 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); 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); 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); 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); return godot::api->godot_pool_real_array_size(&_godot_array);
} }
@ -376,7 +376,7 @@ String PoolStringArray::operator [](const int idx)
return s; return s;
} }
int PoolStringArray::size() int PoolStringArray::size() const
{ {
return godot::api->godot_pool_string_array_size(&_godot_array); return godot::api->godot_pool_string_array_size(&_godot_array);
} }
@ -472,7 +472,7 @@ Vector2 PoolVector2Array::operator [](const int idx)
return v; return v;
} }
int PoolVector2Array::size() int PoolVector2Array::size() const
{ {
return godot::api->godot_pool_vector2_array_size(&_godot_array); return godot::api->godot_pool_vector2_array_size(&_godot_array);
} }
@ -568,7 +568,7 @@ Vector3 PoolVector3Array::operator [](const int idx)
return v; return v;
} }
int PoolVector3Array::size() int PoolVector3Array::size() const
{ {
return godot::api->godot_pool_vector3_array_size(&_godot_array); return godot::api->godot_pool_vector3_array_size(&_godot_array);
} }
@ -663,7 +663,7 @@ Color PoolColorArray::operator [](const int idx)
return v; return v;
} }
int PoolColorArray::size() int PoolColorArray::size() const
{ {
return godot::api->godot_pool_color_array_size(&_godot_array); return godot::api->godot_pool_color_array_size(&_godot_array);
} }