Add explicit keyword to 1 arg constructors
The cppcheck tool complains about it otherwise.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Id977a6c349b0b49354b52ac994ea7742e0a39307
diff --git a/control/json/profile.hpp b/control/json/profile.hpp
index dd0aed0..8647eb8 100644
--- a/control/json/profile.hpp
+++ b/control/json/profile.hpp
@@ -56,7 +56,7 @@
* @param[in] bus - sdbusplus bus object
* @param[in] jsonObj - JSON object
*/
- Profile(const json& jsonObj);
+ explicit Profile(const json& jsonObj);
/**
* @brief Get the active state