From 6ccb5e96873716086e6d86a491df862627de5451 Mon Sep 17 00:00:00 2001 From: Hyrum Wright Date: Tue, 14 Aug 2012 01:23:04 -0400 Subject: Fix compilation warning: be sure we call the base class copy constructor. --- src/report.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/report.h b/src/report.h index 0f4fc103..4a02843e 100644 --- a/src/report.h +++ b/src/report.h @@ -123,7 +123,7 @@ public: TRACE_CTOR(report_t, "session_t&"); } report_t(const report_t& report) - : session(report.session), + : scope_t(report), session(report.session), output_stream(report.output_stream), terminus(report.terminus), budget_flags(report.budget_flags) { -- cgit v1.2.3 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