mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-26 01:31:30 -05:00
Fix CppCheck in groutertypes.h
/libretroshare/src/grouter/groutertypes.h:99: warning: Cppcheck(uninitMemberVar): Member variable 'GRouterRoutingInfo::data_status' is not initialized in the constructor. /libretroshare/src/grouter/groutertypes.h:99: warning: Cppcheck(uninitMemberVar): Member variable 'GRouterRoutingInfo::tunnel_status' is not initialized in the constructor. /libretroshare/src/grouter/groutertypes.h:99: warning: Cppcheck(uninitMemberVar): Member variable 'GRouterRoutingInfo::received_time_TS' is not initialized in the constructor. /libretroshare/src/grouter/groutertypes.h:99: warning: Cppcheck(uninitMemberVar): Member variable 'GRouterRoutingInfo::last_sent_TS' is not initialized in the constructor. /libretroshare/src/grouter/groutertypes.h:99: warning: Cppcheck(uninitMemberVar): Member variable 'GRouterRoutingInfo::last_tunnel_request_TS' is not initialized in the constructor. /libretroshare/src/grouter/groutertypes.h:99: warning: Cppcheck(uninitMemberVar): Member variable 'GRouterRoutingInfo::sending_attempts' is not initialized in the constructor. /libretroshare/src/grouter/groutertypes.h:99: warning: Cppcheck(uninitMemberVar): Member variable 'GRouterRoutingInfo::routing_flags' is not initialized in the constructor.
This commit is contained in:
parent
a622194c2d
commit
10233ef1cc
@ -97,11 +97,17 @@ class GRouterRoutingInfo
|
|||||||
// ovoids lots of duplications if the class is copied.
|
// ovoids lots of duplications if the class is copied.
|
||||||
public:
|
public:
|
||||||
GRouterRoutingInfo()
|
GRouterRoutingInfo()
|
||||||
{
|
: data_status(0)
|
||||||
data_transaction_TS = 0 ; // this is not serialised.
|
, tunnel_status(0)
|
||||||
data_item = NULL ;
|
, received_time_TS(0)
|
||||||
receipt_item = NULL ;
|
, last_sent_TS(0)
|
||||||
}
|
, last_tunnel_request_TS(0)
|
||||||
|
, sending_attempts(0)
|
||||||
|
, routing_flags(0)
|
||||||
|
, data_item(NULL)
|
||||||
|
, receipt_item(NULL)
|
||||||
|
, data_transaction_TS(0) // this is not serialised.
|
||||||
|
{}
|
||||||
|
|
||||||
uint32_t data_status ; // pending, waiting, etc.
|
uint32_t data_status ; // pending, waiting, etc.
|
||||||
uint32_t tunnel_status ; // status of tunnel handling.
|
uint32_t tunnel_status ; // status of tunnel handling.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user