From dd4ed2a7f1a064d9ccc1bb796d93ed90f88c0514 Mon Sep 17 00:00:00 2001 From: Phenom Date: Wed, 26 Jul 2017 11:39:54 +0200 Subject: [PATCH] Fix CppCheck in rsgxschannels.h /libretroshare/src/retroshare/rsgxschannels.h:82: warning: Cppcheck(noExplicitConstructor): Class 'RsGxsChannels' has a constructor with 1 argument that is not explicit. --- libretroshare/src/retroshare/rsgxschannels.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/retroshare/rsgxschannels.h b/libretroshare/src/retroshare/rsgxschannels.h index c55d46a72..c75235f0e 100644 --- a/libretroshare/src/retroshare/rsgxschannels.h +++ b/libretroshare/src/retroshare/rsgxschannels.h @@ -79,9 +79,9 @@ class RsGxsChannels: public RsGxsIfaceHelper, public RsGxsCommentService { public: - RsGxsChannels(RsGxsIface *gxs) - :RsGxsIfaceHelper(gxs) { return; } -virtual ~RsGxsChannels() { return; } + explicit RsGxsChannels(RsGxsIface *gxs) + :RsGxsIfaceHelper(gxs) {} + virtual ~RsGxsChannels() {} /* Specific Service Data */ virtual bool getGroupData(const uint32_t &token, std::vector &groups) = 0;