From b00999893006891affccc15cfd5d60b9adb7af8c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 17 Aug 2004 03:09:46 -0400 Subject: if NO_CLEANUP is defined in the Makefile (now default), no cleanup is done --- format.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'format.cc') diff --git a/format.cc b/format.cc index 13ae0235..ec259a19 100644 --- a/format.cc +++ b/format.cc @@ -35,8 +35,13 @@ std::string partial_account_name(const account_t * account) std::string format_t::date_format = "%Y/%m/%d"; +#ifdef NO_CLEANUP +value_expr_t * format_t::value_expr = NULL; +value_expr_t * format_t::total_expr = NULL; +#else std::auto_ptr format_t::value_expr; std::auto_ptr format_t::total_expr; +#endif element_t * format_t::parse_elements(const std::string& fmt) { -- cgit v1.2.3