mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI
- Added default constructor, so it plays nice with others. - Added ::clear method to reset all members.
This commit is contained in:
parent
6388d3827b
commit
b3b509eabe
2 changed files with 16 additions and 0 deletions
14
src/CLI.cpp
14
src/CLI.cpp
|
@ -43,6 +43,12 @@ static int minimumMatchLength = 3;
|
|||
// Alias expansion limit. Any more indicates some kind of error.
|
||||
static int safetyValveDefault = 10;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
A::A ()
|
||||
: _name ("")
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
A::A (const std::string& name, const std::string& raw)
|
||||
{
|
||||
|
@ -76,6 +82,14 @@ A& A::operator= (const A& other)
|
|||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void A::clear ()
|
||||
{
|
||||
_name = "";
|
||||
_tags.clear ();
|
||||
_attributes.clear ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool A::hasTag (const std::string& tag) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue