Replace String comparisons with "", String() to is_empty()
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
This commit is contained in:
@ -227,7 +227,7 @@ void GroupDialog::_group_renamed() {
|
||||
}
|
||||
}
|
||||
|
||||
if (name == "") {
|
||||
if (name.is_empty()) {
|
||||
renamed_group->set_text(0, selected_group);
|
||||
error->set_text(TTR("Invalid group name."));
|
||||
error->popup_centered();
|
||||
|
||||
Reference in New Issue
Block a user