Date: Thu, 20 Dec 2012 00:37:12 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r244470 - stable/9/sbin/devd Message-ID: <201212200037.qBK0bCdT023019@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212200037.qBK0bCdT023019>