mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-14 17:07:17 -05:00
Fix CppCheck in rsconfigitems.h
/libretroshare/src/rsitems/rsconfigitems.h:74: warning: Cppcheck(uninitMemberVar): Member variable 'RsPeerNetItem::netMode' is not initialized in the constructor. /libretroshare/src/rsitems/rsconfigitems.h:74: warning: Cppcheck(uninitMemberVar): Member variable 'RsPeerNetItem::vs_disc' is not initialized in the constructor. /libretroshare/src/rsitems/rsconfigitems.h:74: warning: Cppcheck(uninitMemberVar): Member variable 'RsPeerNetItem::vs_dht' is not initialized in the constructor. /libretroshare/src/rsitems/rsconfigitems.h:74: warning: Cppcheck(uninitMemberVar): Member variable 'RsPeerNetItem::lastContact' is not initialized in the constructor. /libretroshare/src/rsitems/rsconfigitems.h:74: warning: Cppcheck(uninitMemberVar): Member variable 'RsPeerNetItem::domain_port' is not initialized in the constructor. /libretroshare/src/rsitems/rsconfigitems.h:146: warning: Cppcheck(uninitMemberVar): Member variable 'RsNodeGroupItem::flag' is not initialized in the constructor. /libretroshare/src/rsitems/rsconfigitems.h:243: warning: Cppcheck(uninitMemberVar): Member variable 'RsFileConfigItem::flags' is not initialized in the constructor.
This commit is contained in:
parent
a1fb8f70b9
commit
942eba3d71
@ -74,7 +74,9 @@ public:
|
|||||||
RsPeerNetItem()
|
RsPeerNetItem()
|
||||||
:RsItem(RS_PKT_VERSION1, RS_PKT_CLASS_CONFIG,
|
:RsItem(RS_PKT_VERSION1, RS_PKT_CLASS_CONFIG,
|
||||||
RS_PKT_TYPE_PEER_CONFIG,
|
RS_PKT_TYPE_PEER_CONFIG,
|
||||||
RS_PKT_SUBTYPE_PEER_NET) {}
|
RS_PKT_SUBTYPE_PEER_NET)
|
||||||
|
, netMode(0), vs_disc(0), vs_dht(0), lastContact(0), domain_port(0)
|
||||||
|
{}
|
||||||
|
|
||||||
virtual ~RsPeerNetItem(){}
|
virtual ~RsPeerNetItem(){}
|
||||||
virtual void clear();
|
virtual void clear();
|
||||||
@ -143,7 +145,7 @@ class RsPeerBandwidthLimitsItem : public RsItem
|
|||||||
class RsNodeGroupItem: public RsItem
|
class RsNodeGroupItem: public RsItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RsNodeGroupItem(): RsItem(RS_PKT_VERSION1, RS_PKT_CLASS_CONFIG, RS_PKT_TYPE_PEER_CONFIG, RS_PKT_SUBTYPE_NODE_GROUP){}
|
RsNodeGroupItem(): RsItem(RS_PKT_VERSION1, RS_PKT_CLASS_CONFIG, RS_PKT_TYPE_PEER_CONFIG, RS_PKT_SUBTYPE_NODE_GROUP), flag(0) {}
|
||||||
virtual ~RsNodeGroupItem() {}
|
virtual ~RsNodeGroupItem() {}
|
||||||
|
|
||||||
virtual void clear() { pgpList.TlvClear();}
|
virtual void clear() { pgpList.TlvClear();}
|
||||||
@ -240,7 +242,7 @@ const uint32_t RS_FILE_CONFIG_CLEANUP_DELETE = 0x0001;
|
|||||||
class RsFileConfigItem: public RsItem
|
class RsFileConfigItem: public RsItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RsFileConfigItem() :RsItem(RS_PKT_VERSION1, RS_PKT_CLASS_CONFIG, RS_PKT_TYPE_FILE_CONFIG, RS_PKT_SUBTYPE_FILE_ITEM) {}
|
RsFileConfigItem() :RsItem(RS_PKT_VERSION1, RS_PKT_CLASS_CONFIG, RS_PKT_TYPE_FILE_CONFIG, RS_PKT_SUBTYPE_FILE_ITEM), flags(0) {}
|
||||||
virtual ~RsFileConfigItem() {}
|
virtual ~RsFileConfigItem() {}
|
||||||
virtual void clear() { parent_groups.TlvClear(); }
|
virtual void clear() { parent_groups.TlvClear(); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user