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

@ -145,7 +145,7 @@ ISO8601d::ISO8601d (const int m, const int d, const int y)
clear ();
// Error if not valid.
struct tm t = {0};
struct tm t {};
t.tm_isdst = -1; // Requests that mktime determine summer time effect.
t.tm_mday = d;
t.tm_mon = m - 1;
@ -161,7 +161,7 @@ ISO8601d::ISO8601d (const int m, const int d, const int y,
clear ();
// Error if not valid.
struct tm t = {0};
struct tm t {};
t.tm_isdst = -1; // Requests that mktime determine summer time effect.
t.tm_mday = d;
t.tm_mon = m - 1;
@ -983,7 +983,7 @@ void ISO8601d::resolve ()
day = julian;
}
struct tm t = {0};
struct tm t {};
t.tm_isdst = -1; // Requests that mktime/gmtime determine summer time effect.
t.tm_year = year - 1900;
t.tm_mon = month - 1;