From a1fb8f70b9c3cb126b8f096701f1647b7e090f04 Mon Sep 17 00:00:00 2001 From: Phenom Date: Thu, 27 Jul 2017 16:56:10 +0200 Subject: [PATCH] Fix CppCheck in rswire.h /libretroshare/src/retroshare/rswire.h:111: warning: Cppcheck(noExplicitConstructor): Class 'RsWire' has a constructor with 1 argument that is not explicit. --- libretroshare/src/retroshare/rswire.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/retroshare/rswire.h b/libretroshare/src/retroshare/rswire.h index 1bef58577..d9cdb7832 100644 --- a/libretroshare/src/retroshare/rswire.h +++ b/libretroshare/src/retroshare/rswire.h @@ -108,8 +108,8 @@ class RsWire: public RsGxsIfaceHelper { public: - RsWire(RsGxsIface *gxs): RsGxsIfaceHelper(gxs) { return; } -virtual ~RsWire() { return; } + explicit RsWire(RsGxsIface *gxs): RsGxsIfaceHelper(gxs) {} + virtual ~RsWire() {} /* Specific Service Data */ virtual bool getGroupData(const uint32_t &token, std::vector &groups) = 0;