svn commit: r244470 - stable/9/sbin/devd
Eitan Adler
eadler at FreeBSD.org
Thu Dec 20 00:37:12 UTC 2012
Author: eadler
Date: Thu Dec 20 00:37:11 2012
New Revision: 244470
URL: http://svnweb.freebsd.org/changeset/base/244470
Log:
MFC r243932:
Prefer the use of initalizer lists to ctor assignment.
Approved by: cperciva (implicit)
Modified:
stable/9/sbin/devd/devd.cc
stable/9/sbin/devd/devd.hh
Directory Properties:
stable/9/sbin/devd/ (props changed)
Modified: stable/9/sbin/devd/devd.cc
==============================================================================
--- stable/9/sbin/devd/devd.cc Thu Dec 20 00:35:26 2012 (r244469)
+++ stable/9/sbin/devd/devd.cc Thu Dec 20 00:37:11 2012 (r244470)
@@ -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 = "^";
_re.append(c.expand_string(string(re)));
_re.append("$");
regcomp(&_regex, _re.c_str(), REG_EXTENDED | REG_NOSUB | REG_ICASE);
Modified: stable/9/sbin/devd/devd.hh
==============================================================================
--- stable/9/sbin/devd/devd.hh Thu Dec 20 00:35:26 2012 (r244469)
+++ stable/9/sbin/devd/devd.hh Thu Dec 20 00:37:11 2012 (r244470)
@@ -143,7 +143,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 *);
More information about the svn-src-stable-9
mailing list