From b56753ea9f86cd4c4ea749cdd6647a94b7ff0063 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 25 Mar 2019 11:45:32 -0700 Subject: Get rid of some mem* calls that are bad C++ form (but worked fine) and cause warnings. --- node/Revocation.hpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'node/Revocation.hpp') diff --git a/node/Revocation.hpp b/node/Revocation.hpp index 0a43981c..46a5d4f8 100644 --- a/node/Revocation.hpp +++ b/node/Revocation.hpp @@ -58,9 +58,16 @@ class Revocation : public Credential public: static inline Credential::Type credentialType() { return Credential::CREDENTIAL_TYPE_REVOCATION; } - Revocation() + Revocation() : + _id(0), + _credentialId(0), + _networkId(0), + _threshold(0), + _flags(0), + _target(), + _signedBy(), + _type(Credential::CREDENTIAL_TYPE_NULL) { - memset(this,0,sizeof(Revocation)); } /** -- cgit v1.2.3