Cleanup: Corrected object initialization using {}

This commit is contained in:
Paul Beckingham
2015-10-16 08:22:03 -04:00
parent 9b5d0a7cdd
commit 5110a83efa
6 changed files with 11 additions and 11 deletions

View File

@@ -684,7 +684,7 @@ bool Nibbler::getDateISO (time_t& t)
+ ((*_input)[i + 14] - '0');
// Convert to epoch.
struct tm tms = {0};
struct tm tms {};
tms.tm_isdst = -1; // Requests that mktime determine summer time effect.
tms.tm_mon = month - 1;
tms.tm_mday = day;
@@ -894,7 +894,7 @@ bool Nibbler::getDate (const std::string& format, time_t& t)
return false;
// Convert to epoch.
struct tm tms = {0};
struct tm tms {};
tms.tm_isdst = -1; // Requests that mktime determine summer time effect.
tms.tm_mon = month - 1;
tms.tm_mday = day;