From ba7529425817269d421a8dbd2e36010460da4542 Mon Sep 17 00:00:00 2001 From: Phenom Date: Thu, 27 Jul 2017 12:53:47 +0200 Subject: [PATCH] Fix CppChecker in rsidentity.h /libretroshare/src/retroshare/rsidentity.h:269: warning: Cppcheck(noExplicitConstructor): Class 'RsIdentity' has a constructor with 1 argument that is not explicit. --- libretroshare/src/retroshare/rsidentity.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/retroshare/rsidentity.h b/libretroshare/src/retroshare/rsidentity.h index c5c47703a..bf650d462 100644 --- a/libretroshare/src/retroshare/rsidentity.h +++ b/libretroshare/src/retroshare/rsidentity.h @@ -266,8 +266,8 @@ class RsIdentity: public RsGxsIfaceHelper public: - RsIdentity(RsGxsIface *gxs): RsGxsIfaceHelper(gxs) { return; } - virtual ~RsIdentity() { return; } + explicit RsIdentity(RsGxsIface *gxs): RsGxsIfaceHelper(gxs) {} + virtual ~RsIdentity() {} /********************************************************************************************/ /********************************************************************************************/