diff --git a/examples/xtd.forms.examples/others/wiggly/src/wiggly.cpp b/examples/xtd.forms.examples/others/wiggly/src/wiggly.cpp index 01f0f44b45d5..0021e3a0ff37 100644 --- a/examples/xtd.forms.examples/others/wiggly/src/wiggly.cpp +++ b/examples/xtd.forms.examples/others/wiggly/src/wiggly.cpp @@ -26,7 +26,7 @@ namespace wiggly_example { static const vector sins = {0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38}; auto pos = point {(e.clip_rectangle().size().width() - as(e.graphics().measure_string(text(), font()).width())) / 2, (e.clip_rectangle().size().height() - as(e.graphics().measure_string(text(), font()).height())) / 2}; auto wiggly_text = as(text()); - for (auto i = 0U; i < wiggly_text.length(); i++) { + for (auto i = 0_sz; i < wiggly_text.length(); i++) { auto index = (step + i) % sins.size(); e.graphics().draw_string(ustring::format("{}", wiggly_text[i]), font(), solid_brush {color::from_hsb(360.0f / sins.size() * index, 1.0f, 0.75f)}, point::subtract(pos, point(0, sins[index] * font().height() / 400))); pos.x(pos.x() + as(e.graphics().measure_string(ustring::format("{}", wiggly_text[i]), font()).width()));