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
|
@ -391,7 +391,7 @@ OpenXRInterface::Action *OpenXRInterface::create_action(ActionSet *p_action_set,
|
|||
|
||||
// we link our actions back to our trackers so we know which actions to check when we're processing our trackers
|
||||
for (int i = 0; i < p_trackers.size(); i++) {
|
||||
if (p_trackers[i]->actions.find(action) == -1) {
|
||||
if (!p_trackers[i]->actions.has(action)) {
|
||||
p_trackers[i]->actions.push_back(action);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue