From 7e6e42e9d3a2406853bb11b79668091ac5ac7470 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 6 Mar 2013 03:34:30 -0800 Subject: [PATCH] Missing virtual deutructors. --- src/cpp/ripple/AccountItems.h | 1 + src/cpp/ripple/Offer.h | 1 + src/cpp/ripple/RippleState.h | 1 + 3 files changed, 3 insertions(+) diff --git a/src/cpp/ripple/AccountItems.h b/src/cpp/ripple/AccountItems.h index f72e9f558..8b2cd0213 100644 --- a/src/cpp/ripple/AccountItems.h +++ b/src/cpp/ripple/AccountItems.h @@ -17,6 +17,7 @@ public: AccountItem(){ } AccountItem(SerializedLedgerEntry::ref ledger); + virtual ~AccountItem() { ; } virtual AccountItem::pointer makeItem(const uint160& accountID, SerializedLedgerEntry::ref ledgerEntry)=0; virtual LedgerEntryType getType()=0; diff --git a/src/cpp/ripple/Offer.h b/src/cpp/ripple/Offer.h index 94a4fe837..476575237 100644 --- a/src/cpp/ripple/Offer.h +++ b/src/cpp/ripple/Offer.h @@ -11,6 +11,7 @@ class Offer : public AccountItem Offer(SerializedLedgerEntry::pointer ledgerEntry); // For accounts in a ledger public: Offer(){} + virtual ~Offer(){} AccountItem::pointer makeItem(const uint160&, SerializedLedgerEntry::ref ledgerEntry); LedgerEntryType getType(){ return(ltOFFER); } diff --git a/src/cpp/ripple/RippleState.h b/src/cpp/ripple/RippleState.h index 7c86e5412..15a265777 100644 --- a/src/cpp/ripple/RippleState.h +++ b/src/cpp/ripple/RippleState.h @@ -39,6 +39,7 @@ private: public: RippleState(){ } + virtual ~RippleState(){} AccountItem::pointer makeItem(const uint160& accountID, SerializedLedgerEntry::ref ledgerEntry); LedgerEntryType getType(){ return(ltRIPPLE_STATE); }