From 242cc9d1990df2353f50527b833a2a9dee9ffcf7 Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 21 Jul 2017 17:22:16 +0200 Subject: [PATCH] Fix CppCheck in p3gxstransitems.h /libretroshare/src/gxstrans/p3gxstransitems.h:42: warning: Cppcheck(noExplicitConstructor): Class 'RsGxsTransBaseMsgItem' has a constructor with 1 argument that is not explicit. --- libretroshare/src/gxstrans/p3gxstransitems.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/gxstrans/p3gxstransitems.h b/libretroshare/src/gxstrans/p3gxstransitems.h index bfaa98474..f158d0bdd 100644 --- a/libretroshare/src/gxstrans/p3gxstransitems.h +++ b/libretroshare/src/gxstrans/p3gxstransitems.h @@ -39,7 +39,7 @@ public: class RsGxsTransBaseMsgItem : public RsGxsMsgItem { public: - RsGxsTransBaseMsgItem(GxsTransItemsSubtypes subtype) : + explicit RsGxsTransBaseMsgItem(GxsTransItemsSubtypes subtype) : RsGxsMsgItem( RS_SERVICE_TYPE_GXS_TRANS, static_cast(subtype) ), mailId(0) {}