From 4916c3925f7bfcb706b1694e4793dc3d3c51de30 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 30 Dec 2020 20:16:44 +0100 Subject: [PATCH] renamed mispelled functions --- libretroshare/src/gxs/rsgenexchange.cc | 10 +++++----- libretroshare/src/gxs/rsgxsdataaccess.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libretroshare/src/gxs/rsgenexchange.cc b/libretroshare/src/gxs/rsgenexchange.cc index a54304ae1..7cb0748bf 100644 --- a/libretroshare/src/gxs/rsgenexchange.cc +++ b/libretroshare/src/gxs/rsgenexchange.cc @@ -59,6 +59,9 @@ static const uint32_t INDEX_AUTHEN_IDENTITY = 0x00000010; // identity static const uint32_t INDEX_AUTHEN_PUBLISH = 0x00000020; // publish key static const uint32_t INDEX_AUTHEN_ADMIN = 0x00000040; // admin key +static const uint32_t MSG_CLEANUP_PERIOD = 60*59; // 59 minutes +static const uint32_t INTEGRITY_CHECK_PERIOD = 60*31; // 31 minutes + #define GXS_MASK "GXS_MASK_HACK" /* @@ -132,9 +135,6 @@ static const uint32_t INDEX_AUTHEN_ADMIN = 0x00000040; // admin key // +--- processRoutingClues() ; // -static const uint32_t MSG_CLEANUP_PERIOD = 60*59; // 59 minutes -static const uint32_t INTEGRITY_CHECK_PERIOD = 60*31; // 31 minutes - RsGenExchange::RsGenExchange( RsGeneralDataService* gds, RsNetworkExchangeService* ns, RsSerialType* serviceSerialiser, uint16_t servType, RsGixs* gixs, @@ -1599,8 +1599,8 @@ bool RsGenExchange::getMsgRelatedData( uint32_t token, const RsGxsGrpMsgIdPair& msgId = mit->first; std::vector &gxsMsgItems = msgItems[msgId]; std::vector& nxsMsgsV = mit->second; - std::vector::iterator vit = nxsMsgsV.begin(); - for(; vit != nxsMsgsV.end(); ++vit) + + for(auto vit=nxsMsgsV.begin(); vit != nxsMsgsV.end(); ++vit) { RsNxsMsg*& msg = *vit; RsItem* item = NULL; diff --git a/libretroshare/src/gxs/rsgxsdataaccess.h b/libretroshare/src/gxs/rsgxsdataaccess.h index 3b801f69f..90d61994e 100644 --- a/libretroshare/src/gxs/rsgxsdataaccess.h +++ b/libretroshare/src/gxs/rsgxsdataaccess.h @@ -276,7 +276,7 @@ private: * @param token the value of the token for the request object handle wanted * @return the request associated to this token */ - GxsRequest* locked_retrieveCompetedRequest(const uint32_t& token); + GxsRequest* locked_retrieveCompletedRequest(const uint32_t& token); /*! * Add a gxs request to queue