commit | a4297a6eb13a060fd593d44ac493e7970ce77505 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Thu Jun 19 13:29:34 2014 -0700 |
committer | Yingdi Yu <yuyingdi@gmail.com> | Thu Jun 19 14:32:13 2014 -0700 |
tree | 98d6900816ad0998e9d4b0ee9f54e304fe6ce79c | |
parent | a0c5f830cc37e1acfab9a4aaccd3b94db0e72e8a [diff] |
security: Add "explicit" markers for one-parameter constructors Change-Id: I072c924ecdd212d63700804e8af3f4fac6da1919 Refs: #1681
diff --git a/src/security/conf/checker.hpp b/src/security/conf/checker.hpp index 12017e2..a9ab2a9 100644 --- a/src/security/conf/checker.hpp +++ b/src/security/conf/checker.hpp
@@ -193,6 +193,7 @@ class HierarchicalChecker : public CustomizedChecker { public: + explicit HierarchicalChecker(uint32_t sigType) : CustomizedChecker(sigType, make_shared<HyperKeyLocatorNameChecker>("^(<>*)$", "\\1",
diff --git a/src/security/conf/key-locator-checker.hpp b/src/security/conf/key-locator-checker.hpp index 52cf888..ff9e5fc 100644 --- a/src/security/conf/key-locator-checker.hpp +++ b/src/security/conf/key-locator-checker.hpp
@@ -148,6 +148,7 @@ class RegexKeyLocatorNameChecker : public KeyLocatorChecker { public: + explicit RegexKeyLocatorNameChecker(const Regex& regex) : m_regex(regex) {
diff --git a/src/security/conf/rule.hpp b/src/security/conf/rule.hpp index 6ed5808..31d81f7 100644 --- a/src/security/conf/rule.hpp +++ b/src/security/conf/rule.hpp
@@ -36,6 +36,7 @@ class Rule { public: + explicit Rule(const std::string& id) : m_id(id) {