Merge iterator variable assignment and definition into one line

This commit is contained in:
matheusvb3 committed 2026-01-16 12:46:27 -03:00
1 parent 08c59fb094
commit fbbf142449
8 files changed
+15 -21

No files matched your search

+2 -2
View File
@@ -227,8 +227,8 @@ static constexpr float kWindowScrollLocations[][2] = {
int32_t WindowGetScrollDataIndex(const WindowBase& w, WidgetIndex widget_index)
{
int32_t i, result = 0;
for (i = 0; i < widget_index; i++)
int32_t result = 0;
for (int32_t i = 0; i < widget_index; i++)
{
const auto& widget = w.widgets[i];
if (widget.type == WidgetType::scroll)