From 628a23ae949b3c81a7200619b0515c1c262b0e88 Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 28 Jul 2017 09:34:44 +0200 Subject: [PATCH] Fix CppCheck in rspluginitems.h /libretroshare/src/rsitems/rspluginitems.h:39: warning: Cppcheck(noExplicitConstructor): Class 'RsPluginItem' has a constructor with 1 argument that is not explicit. --- libretroshare/src/rsitems/rspluginitems.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/rsitems/rspluginitems.h b/libretroshare/src/rsitems/rspluginitems.h index f5ff61321..c21567cd1 100644 --- a/libretroshare/src/rsitems/rspluginitems.h +++ b/libretroshare/src/rsitems/rspluginitems.h @@ -36,7 +36,7 @@ const uint8_t RS_PKT_CLASS_PLUGIN_SUBTYPE_HASHSET = 0x01 ; class RsPluginItem: public RsItem { public: - RsPluginItem(uint8_t plugin_item_subtype): RsItem(RS_PKT_VERSION1,RS_PKT_CLASS_CONFIG,RS_PKT_TYPE_PLUGIN_CONFIG,plugin_item_subtype) {} + explicit RsPluginItem(uint8_t plugin_item_subtype): RsItem(RS_PKT_VERSION1,RS_PKT_CLASS_CONFIG,RS_PKT_TYPE_PLUGIN_CONFIG,plugin_item_subtype) {} virtual ~RsPluginItem() {} virtual void clear() {}