Add virtual destructors for CBLSWrapper and CBLSLazyWrapper (#4298)

* Fixes issue #3759

Add virtual destructors for CBLSWrapper and CBLSLazyWrapper

* Fix linter errors

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>

Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
This commit is contained in:
rkarthik2k21 2021-07-28 16:13:26 -04:00 committed by GitHub
parent 4ead0a71b7
commit 13cb92e27f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,8 @@ public:
return *this; return *this;
} }
virtual ~CBLSWrapper() {}
bool operator==(const C& r) const bool operator==(const C& r) const
{ {
return fValid == r.fValid && impl == r.impl; return fValid == r.fValid && impl == r.impl;
@ -321,6 +323,7 @@ public:
{ {
*this = r; *this = r;
} }
virtual ~CBLSLazyWrapper() {}
CBLSLazyWrapper& operator=(const CBLSLazyWrapper& r) CBLSLazyWrapper& operator=(const CBLSLazyWrapper& r)
{ {