diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-09 16:29:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-09 16:29:21 +0100 |
| commit | 92b7d1cffbd0d457f8b4b23cc72937bcf8e5ed5e (patch) | |
| tree | b175db682422765468991702e8563bcd89713b70 /src/lib/subtitle_analysis.cc | |
| parent | 7392cb8383c9b857edad5f99eaf917ed70da237d (diff) | |
Tidying.
Diffstat (limited to 'src/lib/subtitle_analysis.cc')
| -rw-r--r-- | src/lib/subtitle_analysis.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/subtitle_analysis.cc b/src/lib/subtitle_analysis.cc index 0838816b0..632fa99af 100644 --- a/src/lib/subtitle_analysis.cc +++ b/src/lib/subtitle_analysis.cc @@ -19,8 +19,8 @@ */ -#include "subtitle_analysis.h" #include "exceptions.h" +#include "subtitle_analysis.h" #include "warnings.h" #include <libcxml/cxml.h> #include <dcp/raw_convert.h> @@ -49,7 +49,7 @@ SubtitleAnalysis::SubtitleAnalysis (boost::filesystem::path path) throw OldFormatError ("Subtitle analysis file is too old"); } - cxml::NodePtr bounding_box = f.optional_node_child("BoundingBox"); + auto bounding_box = f.optional_node_child("BoundingBox"); if (bounding_box) { _bounding_box = dcpomatic::Rect<double> (); _bounding_box->x = bounding_box->number_child<double>("X"); @@ -67,7 +67,7 @@ void SubtitleAnalysis::write (boost::filesystem::path path) const { auto doc = make_shared<xmlpp::Document>(); - xmlpp::Element* root = doc->create_root_node ("SubtitleAnalysis"); + auto root = doc->create_root_node ("SubtitleAnalysis"); root->add_child("Version")->add_child_text (raw_convert<string>(_current_state_version)); |
