diff --git a/libretroshare/src/ft/fttransfermodule.cc b/libretroshare/src/ft/fttransfermodule.cc index 3c4951dc9..46d10c400 100644 --- a/libretroshare/src/ft/fttransfermodule.cc +++ b/libretroshare/src/ft/fttransfermodule.cc @@ -155,7 +155,7 @@ bool ftTransferModule::addFileSource(const RsPeerId& peerId) /* add in new source */ peerInfo pInfo(peerId); mFileSources.insert(std::pair(peerId,pInfo)); - mit = mFileSources.find(peerId); + //mit = mFileSources.find(peerId); mMultiplexor->sendChunkMapRequest(peerId, mHash,false) ; #ifdef FT_DEBUG @@ -545,7 +545,7 @@ bool ftTransferModule::isCheckingHash() class HashThread: public RsSingleJobThread { public: - HashThread(ftFileCreator *m) + explicit HashThread(ftFileCreator *m) : _hashThreadMtx("HashThread"), _m(m),_finished(false),_hash("") {} virtual void run() diff --git a/libretroshare/src/ft/fttransfermodule.h b/libretroshare/src/ft/fttransfermodule.h index 163773a4e..02cf0212d 100644 --- a/libretroshare/src/ft/fttransfermodule.h +++ b/libretroshare/src/ft/fttransfermodule.h @@ -56,7 +56,7 @@ class HashThread ; class peerInfo { public: - peerInfo(const RsPeerId& peerId_in):peerId(peerId_in),state(PQIPEER_NOT_ONLINE),desiredRate(0),actualRate(0), + explicit peerInfo(const RsPeerId& peerId_in):peerId(peerId_in),state(PQIPEER_NOT_ONLINE),desiredRate(0),actualRate(0), lastTS(0), recvTS(0), lastTransfers(0), nResets(0), rtt(0), rttActive(false), rttStart(0), rttOffset(0), @@ -111,7 +111,7 @@ public: }; ftFileStatus():hash(""),stat(PQIFILE_INIT) {} - ftFileStatus(const RsFileHash& hash_in):hash(hash_in),stat(PQIFILE_INIT) {} + explicit ftFileStatus(const RsFileHash& hash_in):hash(hash_in),stat(PQIFILE_INIT) {} RsFileHash hash; Status stat;