1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 08:14:38 +01:00

Use std::size instead of Util::CountOf

This commit is contained in:
Hielke Morsink
2018-11-21 23:16:04 +01:00
parent 88b2f5fa53
commit 354d973a48
82 changed files with 2216 additions and 2180 deletions

View File

@@ -13,7 +13,6 @@
#include "Editor.h"
#include "Game.h"
#include "OpenRCT2.h"
#include "core/Util.hpp"
#include "localisation/Localisation.h"
#include "management/Research.h"
#include "object/DefaultObjects.h"
@@ -25,6 +24,7 @@
#include "world/Footpath.h"
#include "world/LargeScenery.h"
#include <iterator>
#include <vector>
bool _maxObjectsWasHit;
@@ -351,9 +351,7 @@ static void window_editor_object_selection_select_default_objects()
*/
static void window_editor_object_selection_select_required_objects()
{
int32_t i;
for (i = 0; i < (int32_t)Util::CountOf(RequiredSelectedObjects); i++)
for (size_t i = 0; i < std::size(RequiredSelectedObjects); i++)
window_editor_object_selection_select_object(0, 0xF, &RequiredSelectedObjects[i]);
}