mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Replace find
with contains/has
where applicable
* Replaces `find(...) != -1` with `contains` for `String` * Replaces `find(...) == -1` with `!contains` for `String` * Replaces `find(...) != -1` with `has` for containers * Replaces `find(...) == -1` with `!has` for containers
This commit is contained in:
parent
281fe39929
commit
a0dbdcc3ab
55 changed files with 219 additions and 219 deletions
|
@ -2993,7 +2993,7 @@ Error Main::setup2() {
|
|||
// Dummy text driver cannot draw any text, making the editor unusable if selected.
|
||||
continue;
|
||||
}
|
||||
if (!text_driver_options.is_empty() && text_driver_options.find(",") == -1) {
|
||||
if (!text_driver_options.is_empty() && !text_driver_options.contains(",")) {
|
||||
// Not the first option; add a comma before it as a separator for the property hint.
|
||||
text_driver_options += ",";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue