You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +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:
@@ -586,11 +586,11 @@ Vector<String> OS_Android::get_system_font_path_for_text(const String &p_font_na
|
||||
}
|
||||
if (score > best_score) {
|
||||
best_score = score;
|
||||
if (ret.find(root.path_join(E->get().filename)) < 0) {
|
||||
if (!ret.has(root.path_join(E->get().filename))) {
|
||||
ret.insert(0, root.path_join(E->get().filename));
|
||||
}
|
||||
} else if (score == best_score || E->get().script.is_empty()) {
|
||||
if (ret.find(root.path_join(E->get().filename)) < 0) {
|
||||
if (!ret.has(root.path_join(E->get().filename))) {
|
||||
ret.push_back(root.path_join(E->get().filename));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user