X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent.cc;h=c4836cfa89a643c1838bc94ef302a99c661d9418;hb=308488324dbc4d8b709d3fb1dc9fee0479346c21;hp=1fb4681a251b2810c662426912114f6a2af181e7;hpb=1f8b45c7fd49714628009f5ed2161fbaa2b4d729;p=dcpomatic.git diff --git a/src/lib/content.cc b/src/lib/content.cc index 1fb4681a2..c4836cfa8 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington + Copyright (C) 2013-2014 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,9 +17,14 @@ */ +/** @file src/lib/content.cc + * @brief Content class. + */ + #include #include #include +#include #include "content.h" #include "util.h" #include "content_factory.h" @@ -36,7 +41,7 @@ using std::list; using std::cout; using std::vector; using boost::shared_ptr; -using boost::lexical_cast; +using dcp::raw_convert; int const ContentProperty::PATH = 400; int const ContentProperty::POSITION = 401; @@ -119,9 +124,9 @@ Content::as_xml (xmlpp::Node* node) const node->add_child("Path")->add_child_text (i->string ()); } node->add_child("Digest")->add_child_text (_digest); - node->add_child("Position")->add_child_text (lexical_cast (_position.get ())); - node->add_child("TrimStart")->add_child_text (lexical_cast (_trim_start.get ())); - node->add_child("TrimEnd")->add_child_text (lexical_cast (_trim_end.get ())); + node->add_child("Position")->add_child_text (raw_convert (_position.get ())); + node->add_child("TrimStart")->add_child_text (raw_convert (_trim_start.get ())); + node->add_child("TrimEnd")->add_child_text (raw_convert (_trim_end.get ())); } void