mail[Wesnoth-commits] r27385 - /trunk/src/log.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on June 22, 2008 - 10:39:
Author: mordante
Date: Sun Jun 22 10:39:00 2008
New Revision: 27385

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27385&view=rev
Log:
Initialize all members.

Modified:
    trunk/src/log.hpp

Modified: trunk/src/log.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/log.hpp?rev=27385&r1=27384&r2=27385&view=diff
==============================================================================
--- trunk/src/log.hpp (original)
+++ trunk/src/log.hpp Sun Jun 22 10:39:00 2008
@@ -75,13 +75,17 @@
        std::ostream *output_;
        const char* str_;
 public:
-       scope_logger(log_domain const &domain, const char* str)
-       : output_(0)
+       scope_logger(log_domain const &domain, const char* str) :
+               ticks_(0),
+               output_(0),
+               str_(0)
        {
                if (!debug.dont_log(domain)) do_log_entry(domain, str);
        }
-       scope_logger(log_domain const &domain, const std::string& str)
-       : output_(0)
+       scope_logger(log_domain const &domain, const std::string& str) :
+               ticks_(0),
+               output_(0),
+               str_(0)
        {
                if (!debug.dont_log(domain)) do_log_entry(domain, 
str.c_str());
        }




Related Messages


Powered by MHonArc, Updated Sun Jun 22 11:41:08 2008