mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-17 18:40:49 -04:00
Fix noisy compiler warning
This commit is contained in:
parent
a4950aca66
commit
2a369cb785
1 changed files with 8 additions and 7 deletions
|
@ -3,8 +3,8 @@
|
||||||
* *
|
* *
|
||||||
* libretroshare: retroshare core library *
|
* libretroshare: retroshare core library *
|
||||||
* *
|
* *
|
||||||
* Copyright 2011 by Christopher Evi-Parker *
|
* Copyright (C) 2011 Christopher Evi-Parker *
|
||||||
* Copyright (C) 2018-2019 Gioacchino Mazzurco <gio@eigenlab.org> *
|
* Copyright (C) 2018-2020 Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||||
* *
|
* *
|
||||||
* This program is free software: you can redistribute it and/or modify *
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU Lesser General Public License as *
|
* 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
|
* @param gxs handle to RsGenExchange instance of service (Usually the
|
||||||
* service class itself)
|
* service class itself)
|
||||||
*/
|
*/
|
||||||
RsGxsIfaceHelper(RsGxsIface& gxs) :
|
explicit RsGxsIfaceHelper(RsGxsIface& gxs) :
|
||||||
mGxs(gxs), mTokenService(*gxs.getTokenService()),mMtx("GxsIfaceHelper") {}
|
mGxs(gxs), mTokenService(*gxs.getTokenService()), mMtx("GxsIfaceHelper")
|
||||||
|
{}
|
||||||
|
|
||||||
~RsGxsIfaceHelper(){}
|
~RsGxsIfaceHelper() = default;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Gxs services should call this for automatic handling of
|
* Gxs services should call this for automatic handling of
|
||||||
|
@ -507,7 +508,7 @@ private:
|
||||||
void locked_dumpTokens()
|
void locked_dumpTokens()
|
||||||
{
|
{
|
||||||
const uint16_t service_id = mGxs.serviceType();
|
const uint16_t service_id = mGxs.serviceType();
|
||||||
const auto countSize = static_cast<const size_t>(TokenRequestType::__MAX);
|
const auto countSize = static_cast<size_t>(TokenRequestType::__MAX);
|
||||||
uint32_t count[countSize] = {0};
|
uint32_t count[countSize] = {0};
|
||||||
|
|
||||||
RsDbg() << __PRETTY_FUNCTION__ << "Service 0x" << std::hex << service_id
|
RsDbg() << __PRETTY_FUNCTION__ << "Service 0x" << std::hex << service_id
|
||||||
|
@ -517,7 +518,7 @@ private:
|
||||||
<< ") Active tokens (per type): ";
|
<< ") Active tokens (per type): ";
|
||||||
|
|
||||||
// let's count how many token of each type we've got.
|
// let's count how many token of each type we've got.
|
||||||
for(auto& it: mActiveTokens) ++count[static_cast<int>(it.second)];
|
for(auto& it: mActiveTokens) ++count[static_cast<size_t>(it.second)];
|
||||||
|
|
||||||
for(uint32_t i=0; i < countSize; ++i)
|
for(uint32_t i=0; i < countSize; ++i)
|
||||||
RsDbg().uStream() /* << i << ":" */ << count[i] << " ";
|
RsDbg().uStream() /* << i << ":" */ << count[i] << " ";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue