diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-22 00:11:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-22 00:11:18 +0100 |
| commit | 9b84debc374f426bb3a00baa82bae5fdd88a018e (patch) | |
| tree | 71cc6972a48f469cd83dc0b0ee60953645390fd4 /src/xml.cc | |
| parent | df6ed597b720399f02e7b75a7cf448d0956c89a1 (diff) | |
Some maths operations with Time.
Diffstat (limited to 'src/xml.cc')
| -rw-r--r-- | src/xml.cc | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -126,13 +126,7 @@ XMLNode::ignore_node (string name) Time XMLNode::time_attribute (string name) { - string const t = string_attribute (name); - - vector<string> b; - boost::split (b, t, is_any_of (":")); - assert (b.size() == 4); - - return Time (lexical_cast<int> (b[0]), lexical_cast<int> (b[1]), lexical_cast<int> (b[2]), lexical_cast<int> (b[3])); + return Time (string_attribute (name)); } string |
