1
0
Fork 0

Codechange: use ranged for loop instead of one with lengthof

pull/12589/head
Rubidium 2024-04-28 18:30:02 +02:00
parent e2f8ba611a
commit 368f958bfe
1 changed files with 3 additions and 3 deletions

View File

@ -257,9 +257,9 @@ public:
} }
/* Determine the pixel heights. */ /* Determine the pixel heights. */
for (size_t i = 0; i < lengthof(height); i++) { for (auto &h : height) {
height[i] *= ScaleGUITrad(TILE_HEIGHT); h *= ScaleGUITrad(TILE_HEIGHT);
height[i] += ScaleGUITrad(TILE_PIXELS) + 2 * this->object_margin; h += ScaleGUITrad(TILE_PIXELS) + 2 * this->object_margin;
} }
/* Now determine the size of the minimum widgets. When there are two columns, then /* Now determine the size of the minimum widgets. When there are two columns, then