mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Duration
- Converted Duration::valid to a static method, to match Date.
This commit is contained in:
parent
74d9eac588
commit
ffcc2a49d8
2 changed files with 2 additions and 2 deletions
|
@ -237,7 +237,7 @@ bool Duration::negative () const
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
bool Duration::valid (const std::string& input) const
|
bool Duration::valid (const std::string& input)
|
||||||
{
|
{
|
||||||
std::string lower_input = lowerCase (input);
|
std::string lower_input = lowerCase (input);
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
std::string formatCompact () const;
|
std::string formatCompact () const;
|
||||||
|
|
||||||
bool negative () const;
|
bool negative () const;
|
||||||
bool valid (const std::string&) const;
|
static bool valid (const std::string&);
|
||||||
void parse (const std::string&);
|
void parse (const std::string&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue