Prefer the use of initalizer lists to ctor assignment.

Approved by:	cperciva
MFC after:	2 weeks
This commit is contained in:
Eitan Adler 2012-12-06 01:25:21 +00:00
parent edee691dcf
commit c3fa0037ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243932
2 changed files with 2 additions and 3 deletions

View File

@ -248,9 +248,8 @@ action::do_action(config &c)
}
match::match(config &c, const char *var, const char *re)
: _var(var)
: _var(var), _re("^")
{
_re = "^";
if (!c.expand_string(string(re)).empty() &&
c.expand_string(string(re)).at(0) == '!') {
_re.append(c.expand_string(string(re)).substr(1));

View File

@ -144,7 +144,7 @@ private:
class config
{
public:
config() { _pidfile = ""; push_var_table(); }
config() : _pidfile("") { push_var_table(); }
virtual ~config() { reset(); }
void add_attach(int, event_proc *);
void add_detach(int, event_proc *);