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:
Phenom 2017-07-21 15:54:29 +02:00 committed by csoler
parent 10721945a3
commit f81c6aea03
2 changed files with 5 additions and 3 deletions

View file

@ -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.
//