diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-11-15 11:41:34 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-11-15 11:41:34 +0200 |
commit | 1285f207175fe0909b9e1143706175e0935b34db (patch) | |
tree | b58d20de21b1dfd90a9c3dddb092fa629945e4b8 | |
parent | a7e2b5e983ce12317bbc26d041a9a2a082840726 (diff) |
Remove unnecessary variable initializations
-rw-r--r-- | odb/boost/date-time/oracle/gregorian-traits.hxx | 4 | ||||
-rw-r--r-- | odb/boost/date-time/oracle/posix-time-traits.hxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/odb/boost/date-time/oracle/gregorian-traits.hxx b/odb/boost/date-time/oracle/gregorian-traits.hxx index 6daf6cf..c8cda41 100644 --- a/odb/boost/date-time/oracle/gregorian-traits.hxx +++ b/odb/boost/date-time/oracle/gregorian-traits.hxx @@ -36,8 +36,8 @@ namespace odb v = date (::boost::date_time::not_a_date_time); else { - short y (0); - unsigned char m (0), d (0), h (0), min (0), s (0); + short y; + unsigned char m, d, h, min, s; details::get_date (b, y, m, d, h, min, s); diff --git a/odb/boost/date-time/oracle/posix-time-traits.hxx b/odb/boost/date-time/oracle/posix-time-traits.hxx index e08945d..04e7fea 100644 --- a/odb/boost/date-time/oracle/posix-time-traits.hxx +++ b/odb/boost/date-time/oracle/posix-time-traits.hxx @@ -41,8 +41,8 @@ namespace odb v = ptime (::boost::date_time::not_a_date_time); else { - sb2 y (0); - ub1 m (0), d (0), h (0), min (0), s (0); + sb2 y; + ub1 m, d, h, min, s; ub4 ns; i.get (y, m, d, h, min, s, ns); @@ -113,7 +113,7 @@ namespace odb v = time_duration (::boost::date_time::not_a_date_time); else { - sb4 d (0), h (0), m (0), s (0), ns (0); + sb4 d, h, m, s, ns; i.get (d, h, m, s, ns); unsigned long long fract_s (ns); |