You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +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:
@@ -370,7 +370,7 @@ PackedStringArray RegEx::get_names() const {
|
||||
|
||||
for (uint32_t i = 0; i < count; i++) {
|
||||
String name = &table[i * entry_size + 1];
|
||||
if (result.find(name) < 0) {
|
||||
if (!result.has(name)) {
|
||||
result.append(name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user