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());
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits