mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Rename empty() to is_empty()
This commit is contained in:
parent
886571e0fc
commit
5b937d493f
289 changed files with 898 additions and 898 deletions
|
@ -156,7 +156,7 @@ void ProjectSettingsEditor::_update_advanced_bar() {
|
|||
bool disable_add = true;
|
||||
bool disable_del = true;
|
||||
|
||||
if (!property_box->get_text().empty()) {
|
||||
if (!property_box->get_text().is_empty()) {
|
||||
const String setting = _get_setting_name();
|
||||
bool setting_exists = ps->has_setting(setting);
|
||||
if (setting_exists) {
|
||||
|
@ -197,7 +197,7 @@ void ProjectSettingsEditor::_update_advanced_bar() {
|
|||
|
||||
String ProjectSettingsEditor::_get_setting_name() const {
|
||||
const String cat = category_box->get_text();
|
||||
const String name = (cat.empty() ? "global" : cat.strip_edges()).plus_file(property_box->get_text().strip_edges());
|
||||
const String name = (cat.is_empty() ? "global" : cat.strip_edges()).plus_file(property_box->get_text().strip_edges());
|
||||
const String feature = feature_override->get_item_text(feature_override->get_selected());
|
||||
|
||||
return (feature == "") ? name : (name + "." + feature);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue