diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-14 09:33:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-14 09:33:23 +0100 |
| commit | 2f0e6ee9d883abbbc31aca0d1cc80e89eb9b0af2 (patch) | |
| tree | f1215070c7a4458f8b474fc7163345c6c1c10744 /src/dcp_time.cc | |
| parent | e64f6002a413f7aaffca60387d82c2e91b931ab9 (diff) | |
| parent | 110dc70856bd0f6ae5ec1931f51a4817c5e38f42 (diff) | |
Merge master.
Diffstat (limited to 'src/dcp_time.cc')
| -rw-r--r-- | src/dcp_time.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dcp_time.cc b/src/dcp_time.cc index 5376b972..a3822ed0 100644 --- a/src/dcp_time.cc +++ b/src/dcp_time.cc @@ -21,10 +21,10 @@ * @brief Time class. */ +#include "raw_convert.h" #include "dcp_time.h" #include "exceptions.h" #include <boost/algorithm/string.hpp> -#include <boost/lexical_cast.hpp> #include <iostream> #include <vector> #include <cmath> @@ -78,10 +78,10 @@ Time::Time (string time) boost::throw_exception (DCPReadError ("unrecognised time specification")); } - h = lexical_cast<int> (b[0]); - m = lexical_cast<int> (b[1]); - s = lexical_cast<int> (b[2]); - t = lexical_cast<int> (b[3]); + h = raw_convert<int> (b[0]); + m = raw_convert<int> (b[1]); + s = raw_convert<int> (b[2]); + t = raw_convert<int> (b[3]); } bool |
