Prefer the use of initalizer lists to ctor assignment.
Approved by: cperciva MFC after: 2 weeks
This commit is contained in:
parent
edee691dcf
commit
c3fa0037ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243932
@ -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));
|
||||
|
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user