mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 18:39:10 +00:00
Codechange: use ranged for loop instead of one with lengthof
This commit is contained in:
@@ -257,9 +257,9 @@ public:
|
||||
}
|
||||
|
||||
/* Determine the pixel heights. */
|
||||
for (size_t i = 0; i < lengthof(height); i++) {
|
||||
height[i] *= ScaleGUITrad(TILE_HEIGHT);
|
||||
height[i] += ScaleGUITrad(TILE_PIXELS) + 2 * this->object_margin;
|
||||
for (auto &h : height) {
|
||||
h *= ScaleGUITrad(TILE_HEIGHT);
|
||||
h += ScaleGUITrad(TILE_PIXELS) + 2 * this->object_margin;
|
||||
}
|
||||
|
||||
/* Now determine the size of the minimum widgets. When there are two columns, then
|
||||
|
Reference in New Issue
Block a user