power-supply: Fix warning by cppcheck
style: Class 'RecordManager' has a constructor with 1 argument that
is not explicit. [noExplicitConstructor]
RecordManager(size_t maxRec):RecordManager(maxRec, LAST_SEQUENCE_ID)
^
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I794f90968beb5ead2fb9612eb5a02284bcbfa659
diff --git a/power-supply/record_manager.hpp b/power-supply/record_manager.hpp
index 63e4dd8..88baa31 100644
--- a/power-supply/record_manager.hpp
+++ b/power-supply/record_manager.hpp
@@ -70,7 +70,8 @@
* @param[in] maxRec - the maximum number of history
* records to keep at a time
*/
- RecordManager(size_t maxRec) : RecordManager(maxRec, LAST_SEQUENCE_ID)
+ explicit RecordManager(size_t maxRec) :
+ RecordManager(maxRec, LAST_SEQUENCE_ID)
{}
/**