Fix clang warning: 'const' type qualifier on return type has no effect

pull/148/head
Marcelo Fernandez 2018-06-23 12:15:53 -03:00
parent 5b7fff2bf0
commit baddc2ae66
2 changed files with 6 additions and 6 deletions

View File

@ -104,7 +104,7 @@ public:
void set(const int idx, const uint8_t data);
const uint8_t operator [](const int idx);
uint8_t operator [](const int idx);
int size() const;
@ -200,7 +200,7 @@ public:
void set(const int idx, const int data);
const int operator [](const int idx);
int operator [](const int idx);
int size() const;
@ -296,7 +296,7 @@ public:
void set(const int idx, const real_t data);
const real_t operator [](const int idx);
real_t operator [](const int idx);
int size() const;

View File

@ -86,7 +86,7 @@ void PoolByteArray::set(const int idx, const uint8_t data)
godot::api->godot_pool_byte_array_set(&_godot_array, idx, data);
}
const uint8_t PoolByteArray::operator [](const int idx)
uint8_t PoolByteArray::operator [](const int idx)
{
return godot::api->godot_pool_byte_array_get(&_godot_array, idx);
}
@ -180,7 +180,7 @@ void PoolIntArray::set(const int idx, const int data)
godot::api->godot_pool_int_array_set(&_godot_array, idx, data);
}
const int PoolIntArray::operator [](const int idx)
int PoolIntArray::operator [](const int idx)
{
return godot::api->godot_pool_int_array_get(&_godot_array, idx);
}
@ -273,7 +273,7 @@ void PoolRealArray::set(const int idx, const real_t data)
godot::api->godot_pool_real_array_set(&_godot_array, idx, data);
}
const real_t PoolRealArray::operator [](const int idx)
real_t PoolRealArray::operator [](const int idx)
{
return godot::api->godot_pool_real_array_get(&_godot_array, idx);
}