mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03: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:
@@ -526,7 +526,7 @@ void TextureProgressBar::_notification(int p_what) {
|
||||
Vector<Point2> points;
|
||||
for (const float &f : pts) {
|
||||
Point2 uv = unit_val_to_uv(f);
|
||||
if (uvs.find(uv) >= 0) {
|
||||
if (uvs.has(uv)) {
|
||||
continue;
|
||||
}
|
||||
points.push_back(progress_offset + Point2(uv.x * s.x, uv.y * s.y));
|
||||
|
||||
Reference in New Issue
Block a user