You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -1312,7 +1312,7 @@ void SpriteFramesEditor::_update_library_impl() {
|
||||
TreeItem *selected = nullptr;
|
||||
for (const StringName &E : anim_names) {
|
||||
String name = E;
|
||||
if (searching && name.to_lower().find(searched_string) < 0) {
|
||||
if (searching && !name.to_lower().contains(searched_string)) {
|
||||
continue;
|
||||
}
|
||||
TreeItem *it = animations->create_item(anim_root);
|
||||
|
||||
Reference in New Issue
Block a user