mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Variant
- A variant now contains a source reference, which indicates where it came from. This is used to determine whether 'H' is a priority or just a word.
This commit is contained in:
parent
6bcb9e4bf3
commit
3bc44681a5
2 changed files with 26 additions and 0 deletions
|
@ -48,6 +48,9 @@ public:
|
|||
Variant (const time_t, const enum type new_type = type_date);
|
||||
~Variant ();
|
||||
|
||||
void source (const std::string&);
|
||||
std::string source () const;
|
||||
|
||||
Variant& operator= (const Variant&);
|
||||
|
||||
bool operator&& (const Variant&) const;
|
||||
|
@ -105,6 +108,8 @@ private:
|
|||
std::string _string;
|
||||
time_t _date;
|
||||
time_t _duration;
|
||||
|
||||
std::string _source;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue