Fix remaining non-empty list initializers

This commit is contained in:
Hielke Morsink 2018-06-05 16:06:18 +02:00
parent de3cab59bb
commit 184c46992c
6 changed files with 5 additions and 12 deletions

View File

@ -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;

View File

@ -20,11 +20,6 @@
#include "NetworkAction.h"
#include "NetworkGroup.h"
NetworkGroup::NetworkGroup()
{
ActionsAllowed = { 0 };
}
NetworkGroup NetworkGroup::FromJson(const json_t * json)
{
NetworkGroup group;

View File

@ -30,8 +30,6 @@ public:
static NetworkGroup FromJson(const json_t * json);
NetworkGroup();
const std::string & GetName() const;
void SetName(std::string name);

View File

@ -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__)))

View File

@ -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();

View File

@ -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++)