From 478071304b1f3dbdc3e197498c06c9d1115756b8 Mon Sep 17 00:00:00 2001 From: Phenom Date: Thu, 27 Jul 2017 20:27:02 +0200 Subject: [PATCH] Fix CppCheck in rsgxsrecognitems.h /libretroshare/src/rsitems/rsgxsrecognitems.h:56: warning: Cppcheck(uninitMemberVar): Member variable 'RsGxsRecognReqItem::issued_at' is not initialized in the constructor. /libretroshare/src/rsitems/rsgxsrecognitems.h:56: warning: Cppcheck(uninitMemberVar): Member variable 'RsGxsRecognReqItem::period' is not initialized in the constructor. /libretroshare/src/rsitems/rsgxsrecognitems.h:56: warning: Cppcheck(uninitMemberVar): Member variable 'RsGxsRecognReqItem::tag_class' is not initialized in the constructor. /libretroshare/src/rsitems/rsgxsrecognitems.h:56: warning: Cppcheck(uninitMemberVar): Member variable 'RsGxsRecognReqItem::tag_type' is not initialized in the constructor. /libretroshare/src/rsitems/rsgxsrecognitems.h:82: warning: Cppcheck(uninitMemberVar): Member variable 'RsGxsRecognTagItem::valid_from' is not initialized in the constructor. /libretroshare/src/rsitems/rsgxsrecognitems.h:82: warning: Cppcheck(uninitMemberVar): Member variable 'RsGxsRecognTagItem::valid_to' is not initialized in the constructor. /libretroshare/src/rsitems/rsgxsrecognitems.h:82: warning: Cppcheck(uninitMemberVar): Member variable 'RsGxsRecognTagItem::tag_class' is not initialized in the constructor. /libretroshare/src/rsitems/rsgxsrecognitems.h:82: warning: Cppcheck(uninitMemberVar): Member variable 'RsGxsRecognTagItem::tag_type' is not initialized in the constructor. --- libretroshare/src/rsitems/rsgxsrecognitems.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/rsitems/rsgxsrecognitems.h b/libretroshare/src/rsitems/rsgxsrecognitems.h index e072477ce..68a9aa174 100644 --- a/libretroshare/src/rsitems/rsgxsrecognitems.h +++ b/libretroshare/src/rsitems/rsgxsrecognitems.h @@ -53,7 +53,9 @@ class RsGxsRecognReqItem: public RsItem { public: - RsGxsRecognReqItem() :RsItem(RS_PKT_VERSION_SERVICE, RS_SERVICE_TYPE_GXS_RECOGN, RS_PKT_SUBTYPE_RECOGN_REQ) + RsGxsRecognReqItem() + :RsItem(RS_PKT_VERSION_SERVICE, RS_SERVICE_TYPE_GXS_RECOGN, RS_PKT_SUBTYPE_RECOGN_REQ) + , issued_at(0), period(0), tag_class(0), tag_type(0) { setPriorityLevel(QOS_PRIORITY_DEFAULT); return; @@ -79,7 +81,9 @@ public: class RsGxsRecognTagItem: public RsItem { public: - RsGxsRecognTagItem() :RsItem(RS_PKT_VERSION_SERVICE, RS_SERVICE_TYPE_GXS_RECOGN, RS_PKT_SUBTYPE_RECOGN_TAG) + RsGxsRecognTagItem() + :RsItem(RS_PKT_VERSION_SERVICE, RS_SERVICE_TYPE_GXS_RECOGN, RS_PKT_SUBTYPE_RECOGN_TAG) + , valid_from(0), valid_to(0), tag_class(0), tag_type(0) { setPriorityLevel(QOS_PRIORITY_DEFAULT); return;