mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 20:10:38 +00:00
Initialize all members.
This commit is contained in:
parent
95fb849438
commit
767a7dbe89
12
src/log.hpp
12
src/log.hpp
@ -75,13 +75,17 @@ class scope_logger
|
||||
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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user