Rename empty() to is_empty()
This commit is contained in:
parent
886571e0fc
commit
5b937d493f
289 changed files with 898 additions and 898 deletions
|
|
@ -1477,7 +1477,7 @@ bool Variant::iter_init(Variant &r_iter, bool &valid) const {
|
|||
|
||||
case STRING: {
|
||||
const String *str = reinterpret_cast<const String *>(_data._mem);
|
||||
if (str->empty()) {
|
||||
if (str->is_empty()) {
|
||||
return false;
|
||||
}
|
||||
r_iter = 0;
|
||||
|
|
@ -1485,7 +1485,7 @@ bool Variant::iter_init(Variant &r_iter, bool &valid) const {
|
|||
} break;
|
||||
case DICTIONARY: {
|
||||
const Dictionary *dic = reinterpret_cast<const Dictionary *>(_data._mem);
|
||||
if (dic->empty()) {
|
||||
if (dic->is_empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -1496,7 +1496,7 @@ bool Variant::iter_init(Variant &r_iter, bool &valid) const {
|
|||
} break;
|
||||
case ARRAY: {
|
||||
const Array *arr = reinterpret_cast<const Array *>(_data._mem);
|
||||
if (arr->empty()) {
|
||||
if (arr->is_empty()) {
|
||||
return false;
|
||||
}
|
||||
r_iter = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue