From 2a369cb785b9859aca4dea77b680b8d2d8121c51 Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Wed, 8 Apr 2020 18:54:22 +0200 Subject: [PATCH] Fix noisy compiler warning --- libretroshare/src/retroshare/rsgxsifacehelper.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/libretroshare/src/retroshare/rsgxsifacehelper.h b/libretroshare/src/retroshare/rsgxsifacehelper.h index 1ea2ad061..0addbf6e5 100644 --- a/libretroshare/src/retroshare/rsgxsifacehelper.h +++ b/libretroshare/src/retroshare/rsgxsifacehelper.h @@ -3,8 +3,8 @@ * * * libretroshare: retroshare core library * * * - * Copyright 2011 by Christopher Evi-Parker * - * Copyright (C) 2018-2019 Gioacchino Mazzurco * + * Copyright (C) 2011 Christopher Evi-Parker * + * Copyright (C) 2018-2020 Gioacchino Mazzurco * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * @@ -66,10 +66,11 @@ public: * @param gxs handle to RsGenExchange instance of service (Usually the * service class itself) */ - RsGxsIfaceHelper(RsGxsIface& gxs) : - mGxs(gxs), mTokenService(*gxs.getTokenService()),mMtx("GxsIfaceHelper") {} + explicit RsGxsIfaceHelper(RsGxsIface& gxs) : + mGxs(gxs), mTokenService(*gxs.getTokenService()), mMtx("GxsIfaceHelper") + {} - ~RsGxsIfaceHelper(){} + ~RsGxsIfaceHelper() = default; /*! * Gxs services should call this for automatic handling of @@ -507,7 +508,7 @@ private: void locked_dumpTokens() { const uint16_t service_id = mGxs.serviceType(); - const auto countSize = static_cast(TokenRequestType::__MAX); + const auto countSize = static_cast(TokenRequestType::__MAX); uint32_t count[countSize] = {0}; RsDbg() << __PRETTY_FUNCTION__ << "Service 0x" << std::hex << service_id @@ -517,7 +518,7 @@ private: << ") Active tokens (per type): "; // let's count how many token of each type we've got. - for(auto& it: mActiveTokens) ++count[static_cast(it.second)]; + for(auto& it: mActiveTokens) ++count[static_cast(it.second)]; for(uint32_t i=0; i < countSize; ++i) RsDbg().uStream() /* << i << ":" */ << count[i] << " ";