diff --git a/src/openrct2-ui/UiContext.Win32.cpp b/src/openrct2-ui/UiContext.Win32.cpp index cef820f895..a85cd8f7a4 100644 --- a/src/openrct2-ui/UiContext.Win32.cpp +++ b/src/openrct2-ui/UiContext.Win32.cpp @@ -105,7 +105,7 @@ namespace OpenRCT2::Ui std::wstring wcFilters = GetFilterString(desc.Filters); // Set open file name options - OPENFILENAMEW openFileName = { 0 }; + OPENFILENAMEW openFileName = {}; openFileName.lStructSize = sizeof(OPENFILENAMEW); openFileName.hwndOwner = GetHWND(window); openFileName.lpstrTitle = wcTitle.c_str(); @@ -163,7 +163,7 @@ namespace OpenRCT2::Ui SUCCEEDED(SHGetMalloc(&lpMalloc))) { std::wstring titleW = String::ToUtf16(title); - BROWSEINFOW bi = { 0 }; + BROWSEINFOW bi = {}; bi.lpszTitle = titleW.c_str(); bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE | BIF_NONEWFOLDERBUTTON; diff --git a/src/openrct2/network/NetworkGroup.cpp b/src/openrct2/network/NetworkGroup.cpp index 15896ecd53..fd075b81ae 100644 --- a/src/openrct2/network/NetworkGroup.cpp +++ b/src/openrct2/network/NetworkGroup.cpp @@ -20,11 +20,6 @@ #include "NetworkAction.h" #include "NetworkGroup.h" -NetworkGroup::NetworkGroup() -{ - ActionsAllowed = { 0 }; -} - NetworkGroup NetworkGroup::FromJson(const json_t * json) { NetworkGroup group; diff --git a/src/openrct2/network/NetworkGroup.h b/src/openrct2/network/NetworkGroup.h index ad519b6053..29dfe0759c 100644 --- a/src/openrct2/network/NetworkGroup.h +++ b/src/openrct2/network/NetworkGroup.h @@ -30,8 +30,6 @@ public: static NetworkGroup FromJson(const json_t * json); - NetworkGroup(); - const std::string & GetName() const; void SetName(std::string name); diff --git a/src/openrct2/platform/Shared.cpp b/src/openrct2/platform/Shared.cpp index dcd18e4df4..00c6ccc05f 100644 --- a/src/openrct2/platform/Shared.cpp +++ b/src/openrct2/platform/Shared.cpp @@ -46,7 +46,7 @@ #endif #if defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200) - static mach_timebase_info_data_t _mach_base_info = { 0 }; + static mach_timebase_info_data_t _mach_base_info = {}; #endif #if !((defined (_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809L) || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 700) || (defined(__APPLE__) && defined(__MACH__))) diff --git a/src/openrct2/ride/TrackDesignSave.cpp b/src/openrct2/ride/TrackDesignSave.cpp index 42a4b01c8c..69fec3dafb 100644 --- a/src/openrct2/ride/TrackDesignSave.cpp +++ b/src/openrct2/ride/TrackDesignSave.cpp @@ -1180,7 +1180,7 @@ static void auto_buffer_write(auto_buffer *buffer, const void *src, size_t len) bool track_design_save_to_file(const utf8 *path) { rct_track_td6 *td6 = _trackDesign; - const rct_td6_maze_element EndMarkerForMaze = { 0 }; + const rct_td6_maze_element EndMarkerForMaze = {}; const uint8 EndMarker = 0xFF; window_close_construction_windows(); diff --git a/src/openrct2/world/MapHelpers.cpp b/src/openrct2/world/MapHelpers.cpp index 5911592044..56c1b1e841 100644 --- a/src/openrct2/world/MapHelpers.cpp +++ b/src/openrct2/world/MapHelpers.cpp @@ -214,7 +214,7 @@ sint32 tile_smooth(sint32 x, sint32 y) sint32 SE; sint32 S; }; - } neighbourHeightOffset = { 0 }; + } neighbourHeightOffset = {}; // Find the neighbour base heights for (sint32 index = 0, y_offset = -1; y_offset <= 1; y_offset++)