diff --git a/src/Duration.cpp b/src/Duration.cpp index 2890a5626..e719dc227 100644 --- a/src/Duration.cpp +++ b/src/Duration.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include @@ -295,7 +295,7 @@ bool Duration::parse (const std::string& input, std::string::size_type& start) if (n.getOneOf (units, unit)) { if (n.depleted () || - Lexer::is_ws (n.next ())) + Lexer2::isWhitespace (n.next ())) { start = original_start + n.cursor (); @@ -319,7 +319,7 @@ bool Duration::parse (const std::string& input, std::string::size_type& start) if (n.getOneOf (units, unit)) { if (n.depleted () || - Lexer::is_ws (n.next ())) + Lexer2::isWhitespace (n.next ())) { start = original_start + n.cursor (); double quantity = strtod (number.c_str (), NULL);