Merge pull request #148 from marcelofg55/fix_return_const

Fix clang warning: 'const' type qualifier on return type has no effect
pull/151/head
Thomas Herzog 2018-06-24 00:11:39 +02:00 committed by GitHub
commit 88ec502970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}