CmdBurndown: Code cleanup

This commit is contained in:
Paul Beckingham 2017-01-28 17:50:51 -05:00
parent 4a0c6995ed
commit a206d9405b

View file

@ -50,35 +50,22 @@ extern Context context;
class Bar class Bar
{ {
public: public:
Bar (); Bar () = default;
Bar (const Bar&); Bar (const Bar&);
Bar& operator= (const Bar&); Bar& operator= (const Bar&);
~Bar (); ~Bar () = default;
public: public:
int _offset; // from left of chart int _offset {0}; // from left of chart
std::string _major_label; // x-axis label, major (year/-/month) std::string _major_label {""}; // x-axis label, major (year/-/month)
std::string _minor_label; // x-axis label, minor (month/week/day) std::string _minor_label {""}; // x-axis label, minor (month/week/day)
int _pending; // Number of pending tasks in period int _pending {0}; // Number of pending tasks in period
int _started; // Number of started tasks in period int _started {0}; // Number of started tasks in period
int _done; // Number of done tasks in period int _done {0}; // Number of done tasks in period
int _added; // Number added in period int _added {0}; // Number added in period
int _removed; // Number removed 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) Bar::Bar (const Bar& other)
{ {
@ -103,11 +90,6 @@ Bar& Bar::operator= (const Bar& other)
return *this; return *this;
} }
////////////////////////////////////////////////////////////////////////////////
Bar::~Bar ()
{
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Data gathering algorithm: // Data gathering algorithm:
// //