mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 00:55:13 -04:00
Fix CppCheck in p3grouter
/libretroshare/src/grouter/p3grouter.cc:2295: warning: Cppcheck(cstyleCast): C-style pointer casting /libretroshare/src/grouter/p3grouter.h:82: warning: Cppcheck(uninitMemberVar): Member variable 'GRouterDataInfo::last_activity_TS' is not initialized in the constructor. /libretroshare/src/grouter/p3grouter.cc:206: warning: Cppcheck(uninitMemberVar): Member variable 'p3GRouter::mTurtle' is not initialized in the constructor. /libretroshare/src/grouter/p3grouter.cc:206: warning: Cppcheck(uninitMemberVar): Member variable 'p3GRouter::mLinkMgr' is not initialized in the constructor.
This commit is contained in:
parent
10721945a3
commit
f81c6aea03
2 changed files with 5 additions and 3 deletions
|
@ -79,7 +79,7 @@ class GRouterDataInfo
|
|||
{
|
||||
// ! This class does not have a copy constructor that duplicates the incoming data buffer. This is on purpose!
|
||||
public:
|
||||
GRouterDataInfo()
|
||||
GRouterDataInfo() : last_activity_TS(0)
|
||||
{
|
||||
incoming_data_buffer = NULL ;
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ private:
|
|||
p3ServiceControl *mServiceControl ;
|
||||
p3turtle *mTurtle ;
|
||||
RsGixs *mGixs ;
|
||||
p3LinkMgr *mLinkMgr ;
|
||||
//p3LinkMgr *mLinkMgr ;
|
||||
|
||||
// Multi-thread protection mutex.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue