From 73aa585efae21cf596996f76330834a83da299ac Mon Sep 17 00:00:00 2001 From: Hyrum Wright Date: Tue, 14 Aug 2012 01:23:32 -0400 Subject: Fix compilation warning: ensure a destructor is properly defined to avoid compiler confusion. --- src/history.cc | 4 ++++ src/history.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/history.cc b/src/history.cc index 25335680..414fc15d 100644 --- a/src/history.cc +++ b/src/history.cc @@ -129,6 +129,10 @@ commodity_history_t::commodity_history_t() p_impl.reset(new commodity_history_impl_t); } +commodity_history_t::~commodity_history_t() +{ +} + void commodity_history_t::add_commodity(commodity_t& comm) { p_impl->add_commodity(comm); diff --git a/src/history.h b/src/history.h index 4362c9f9..b763cb0b 100644 --- a/src/history.h +++ b/src/history.h @@ -88,6 +88,7 @@ public: const datetime_t& oldest = datetime_t()); void print_map(std::ostream& out, const datetime_t& moment = datetime_t()); + ~commodity_history_t(); }; } // namespace ledger -- cgit v1.2.3