- Replaced old digitsOnly() function with Lexer::isAllDigits.
This commit is contained in:
Paul Beckingham
2015-02-22 20:23:00 -05:00
parent 9f82926c65
commit 26aff348d2
7 changed files with 9 additions and 26 deletions

View File

@@ -107,7 +107,7 @@ Duration::Duration (time_t input)
Duration::Duration (const std::string& input)
: _secs (0)
{
if (digitsOnly (input))
if (Lexer::isAllDigits (input))
{
time_t value = (time_t) strtol (input.c_str (), NULL, 10);
if (value == 0 || value > 60)