mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 15:35:49 -04:00
Fix CppCheck duplInheritedMember warning in RsItem
/libretroshare/src/rsitems/rsitem.h:92: warning: Cppcheck(duplInheritedMember): The class 'RsPeerNetItem' defines member variable with name 'peerId' also defined in its parent struct 'RsItem'. /libretroshare/src/rsitems/rsitem.h:92: warning: Cppcheck(duplInheritedMember): The class 'RsHistoryMsgItem' defines member variable with name 'peerId' also defined in its parent struct 'RsItem'. /libretroshare/src/rsitems/rsitem.h:91: warning: Cppcheck(duplInheritedMember): The class 'RsBanListConfigItem' defines member variable with name 'type' also defined in its parent struct 'RsItem'. /libretroshare/src/rsitems/rsitem.h:92: warning: Cppcheck(duplInheritedMember): The class 'RsBanListConfigItem' defines member variable with name 'peerId' also defined in its parent struct 'RsItem'.
This commit is contained in:
parent
38ac234862
commit
f39fd069b5
10 changed files with 74 additions and 72 deletions
|
@ -60,18 +60,20 @@ class RsBanListItem: public RsItem
|
|||
class RsBanListConfigItem: public RsItem
|
||||
{
|
||||
public:
|
||||
RsBanListConfigItem()
|
||||
:RsItem(RS_PKT_VERSION_SERVICE, RS_SERVICE_TYPE_BANLIST, RS_PKT_SUBTYPE_BANLIST_CONFIG_ITEM) {}
|
||||
RsBanListConfigItem()
|
||||
: RsItem(RS_PKT_VERSION_SERVICE, RS_SERVICE_TYPE_BANLIST, RS_PKT_SUBTYPE_BANLIST_CONFIG_ITEM)
|
||||
, banListType(0), update_time(0)
|
||||
{}
|
||||
|
||||
virtual ~RsBanListConfigItem(){}
|
||||
virtual void clear() { banned_peers.TlvClear() ; }
|
||||
virtual ~RsBanListConfigItem(){}
|
||||
virtual void clear() { banned_peers.TlvClear() ; }
|
||||
|
||||
void serial_process(RsGenericSerializer::SerializeJob j,RsGenericSerializer::SerializeContext& ctx);
|
||||
|
||||
uint32_t type ;
|
||||
RsPeerId peerId ;
|
||||
time_t update_time ;
|
||||
RsTlvBanList banned_peers;
|
||||
uint32_t banListType ;
|
||||
RsPeerId banListPeerId ;
|
||||
time_t update_time ;
|
||||
RsTlvBanList banned_peers;
|
||||
};
|
||||
|
||||
class RsBanListSerialiser: public RsServiceSerializer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue