mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI
- Added constructors to match the overloaded ::attribute methods.
This commit is contained in:
parent
c8f49bcafb
commit
97f302f276
2 changed files with 16 additions and 0 deletions
14
src/CLI.cpp
14
src/CLI.cpp
|
@ -56,6 +56,20 @@ A::A (const std::string& name, const std::string& raw)
|
|||
attribute ("raw", raw);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
A::A (const std::string& name, const int raw)
|
||||
{
|
||||
_name = name;
|
||||
attribute ("raw", raw);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
A::A (const std::string& name, const double raw)
|
||||
{
|
||||
_name = name;
|
||||
attribute ("raw", raw);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
A::~A ()
|
||||
{
|
||||
|
|
|
@ -36,6 +36,8 @@ class A
|
|||
public:
|
||||
A ();
|
||||
A (const std::string&, const std::string&);
|
||||
A (const std::string&, const int);
|
||||
A (const std::string&, const double);
|
||||
~A ();
|
||||
A (const A&);
|
||||
A& operator= (const A&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue