Rename empty() to is_empty()

This commit is contained in:
Marcel Admiraal
2020-12-15 12:04:21 +00:00
parent 886571e0fc
commit 5b937d493f
289 changed files with 898 additions and 898 deletions

View File

@ -40,7 +40,7 @@ struct DictionaryPrivate {
};
void Dictionary::get_key_list(List<Variant> *p_keys) const {
if (_p->variant_map.empty()) {
if (_p->variant_map.is_empty()) {
return;
}
@ -121,7 +121,7 @@ int Dictionary::size() const {
return _p->variant_map.size();
}
bool Dictionary::empty() const {
bool Dictionary::is_empty() const {
return !_p->variant_map.size();
}
@ -192,7 +192,7 @@ uint32_t Dictionary::hash() const {
Array Dictionary::keys() const {
Array varr;
if (_p->variant_map.empty()) {
if (_p->variant_map.is_empty()) {
return varr;
}
@ -209,7 +209,7 @@ Array Dictionary::keys() const {
Array Dictionary::values() const {
Array varr;
if (_p->variant_map.empty()) {
if (_p->variant_map.is_empty()) {
return varr;
}