- Converted Duration::valid to a static method, to match Date.
This commit is contained in:
Paul Beckingham 2011-06-10 18:36:10 -04:00
parent 74d9eac588
commit ffcc2a49d8
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -50,7 +50,7 @@ public:
std::string formatCompact () const;
bool negative () const;
bool valid (const std::string&) const;
static bool valid (const std::string&);
void parse (const std::string&);
private: