Filter: C++11

This commit is contained in:
Paul Beckingham
2016-02-03 21:12:18 -05:00
parent cdd1c4681d
commit 3b82be9c16
2 changed files with 13 additions and 21 deletions

View File

@@ -37,19 +37,19 @@ bool domSource (const std::string&, Variant&);
class Filter
{
public:
Filter ();
Filter () = default;
void subset (const std::vector <Task>&, std::vector <Task>&);
void subset (std::vector <Task>&);
bool hasFilter ();
bool pendingOnly ();
void safety ();
bool hasFilter () const;
bool pendingOnly () const;
void safety () const;
void disableSafety ();
private:
int _startCount;
int _endCount;
bool _safety;
int _startCount {0};
int _endCount {0};
bool _safety {true};
};
#endif