Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2008-06-04 12:05:30


Author: anthonyw
Date: 2008-06-04 12:05:29 EDT (Wed, 04 Jun 2008)
New Revision: 46124
URL: http://svn.boost.org/trac/boost/changeset/46124

Log:
Removed partial initializer for res: both values will be assigned later, so no need to initialize either
Text files modified:
   trunk/boost/thread/xtime.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/thread/xtime.hpp
==============================================================================
--- trunk/boost/thread/xtime.hpp (original)
+++ trunk/boost/thread/xtime.hpp 2008-06-04 12:05:29 EDT (Wed, 04 Jun 2008)
@@ -58,7 +58,7 @@
 
 inline xtime get_xtime(boost::system_time const& abs_time)
 {
- xtime res={0};
+ xtime res;
     boost::posix_time::time_duration const time_since_epoch=abs_time-boost::posix_time::from_time_t(0);
             
     res.sec=static_cast<xtime::xtime_sec_t>(time_since_epoch.total_seconds());


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk