1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

Remove argument list from zero-initializers with zero/false/nullptr value

This commit is contained in:
Hielke Morsink
2018-06-04 19:50:46 +02:00
parent a14d59028f
commit 5d0022a5cb
46 changed files with 84 additions and 87 deletions

View File

@@ -117,7 +117,7 @@ public:
}
if (object != nullptr)
{
ObjectRepositoryItem item = { 0 };
ObjectRepositoryItem item = {};
item.ObjectEntry = *object->GetObjectEntry();
item.Path = path;
item.Name = object->GetName();
@@ -248,7 +248,7 @@ public:
const ObjectRepositoryItem * FindObject(const utf8 * name) const override
{
rct_object_entry entry = { 0 };
rct_object_entry entry = {};
utf8 entryName[9] = { ' ' };
String::Set(entryName, sizeof(entryName), name);
std::copy_n(entryName, 8, entry.name);