From 651c39c881971f47b0f1d7666baf86ead55afc49 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 28 Jan 2017 17:50:51 -0500 Subject: [PATCH] CmdBurndown: Code cleanup --- src/commands/CmdBurndown.cpp | 38 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/src/commands/CmdBurndown.cpp b/src/commands/CmdBurndown.cpp index c54abad41..d1500fd68 100644 --- a/src/commands/CmdBurndown.cpp +++ b/src/commands/CmdBurndown.cpp @@ -50,35 +50,22 @@ extern Context context; class Bar { public: - Bar (); + Bar () = default; Bar (const Bar&); Bar& operator= (const Bar&); - ~Bar (); + ~Bar () = default; public: - int _offset; // from left of chart - std::string _major_label; // x-axis label, major (year/-/month) - std::string _minor_label; // x-axis label, minor (month/week/day) - int _pending; // Number of pending tasks in period - int _started; // Number of started tasks in period - int _done; // Number of done tasks in period - int _added; // Number added in period - int _removed; // Number removed in period + int _offset {0}; // from left of chart + std::string _major_label {""}; // x-axis label, major (year/-/month) + std::string _minor_label {""}; // x-axis label, minor (month/week/day) + int _pending {0}; // Number of pending tasks in period + int _started {0}; // Number of started tasks in period + int _done {0}; // Number of done tasks in period + int _added {0}; // Number added in period + int _removed {0}; // Number removed in period }; -//////////////////////////////////////////////////////////////////////////////// -Bar::Bar () -: _offset (0) -, _major_label ("") -, _minor_label ("") -, _pending (0) -, _started (0) -, _done (0) -, _added (0) -, _removed (0) -{ -} - //////////////////////////////////////////////////////////////////////////////// Bar::Bar (const Bar& other) { @@ -103,11 +90,6 @@ Bar& Bar::operator= (const Bar& other) return *this; } -//////////////////////////////////////////////////////////////////////////////// -Bar::~Bar () -{ -} - //////////////////////////////////////////////////////////////////////////////// // Data gathering algorithm: //