X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fsubtitle_content.cc;h=f338517e407e35a4136eb1864d7db84b7f5bbd30;hb=2e93ca3670e5581b5523f60130b38594de10d6c3;hp=e32118c45d232acdc29e92566a8bd7622ec26d44;hpb=9ed550de7b98ca2f8467dd134a9c0ad7f1868f23;p=libdcp.git diff --git a/src/subtitle_content.cc b/src/subtitle_content.cc index e32118c4..f338517e 100644 --- a/src/subtitle_content.cc +++ b/src/subtitle_content.cc @@ -34,6 +34,7 @@ using std::list; using std::ostream; using std::ofstream; using std::stringstream; +using std::cout; using boost::shared_ptr; using boost::lexical_cast; using boost::optional; @@ -59,7 +60,7 @@ SubtitleContent::SubtitleContent (boost::filesystem::path file) /* Now make Subtitle objects to represent the raw XML nodes in a sane way. */ - + ParseState parse_state; examine_font_nodes (xml, font_nodes, parse_state); } @@ -230,7 +231,7 @@ SubtitleContent::xml_as_string () const if (!_load_font_nodes.empty ()) { xmlpp::Element* load_font = root->add_child("LoadFont"); load_font->set_attribute("Id", _load_font_nodes.front()->id); - load_font->set_attribute("URI", _load_font_nodes.front()->uri); + load_font->set_attribute("URI", _load_font_nodes.front()->uri); } list > sorted = _subtitles;