From 344bc27ff75a8f5f0cbab7060ecd58234d5fd8ba Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 21 Jul 2017 15:55:40 +0200 Subject: [PATCH] Fix CppCheck in gxstokenqueue.h /libretroshare/src/gxs/gxstokenqueue.h:51: warning: Cppcheck(noExplicitConstructor): Class 'GxsTokenQueue' has a constructor with 1 argument that is not explicit. --- libretroshare/src/gxs/gxstokenqueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/gxs/gxstokenqueue.h b/libretroshare/src/gxs/gxstokenqueue.h index 4883fecbf..1099cd338 100644 --- a/libretroshare/src/gxs/gxstokenqueue.h +++ b/libretroshare/src/gxs/gxstokenqueue.h @@ -48,7 +48,7 @@ struct GxsTokenQueueItem class GxsTokenQueue { public: - GxsTokenQueue(RsGenExchange *gxs) : + explicit GxsTokenQueue(RsGenExchange *gxs) : mGenExchange(gxs), mQueueMtx("GxsTokenQueueMtx") {} bool queueRequest(uint32_t token, uint32_t req_type);