diff options
Diffstat (limited to 'src/lib/cross_common.cc')
| -rw-r--r-- | src/lib/cross_common.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/cross_common.cc b/src/lib/cross_common.cc index f8556b1fd..2e48bf3e0 100644 --- a/src/lib/cross_common.cc +++ b/src/lib/cross_common.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -18,6 +18,7 @@ */ + #include "cross.h" #include "compose.hpp" #include "dcpomatic_log.h" @@ -30,8 +31,10 @@ DCPOMATIC_ENABLE_WARNINGS #include "i18n.h" + using std::string; + Drive::Drive (string xml) { cxml::Document doc; @@ -50,7 +53,7 @@ string Drive::as_xml () const { xmlpp::Document doc; - xmlpp::Element* root = doc.create_root_node ("Drive"); + auto root = doc.create_root_node ("Drive"); root->add_child("Device")->add_child_text(_device); for (auto i: _mount_points) { root->add_child("MountPoint")->add_child_text(i.string()); @@ -91,6 +94,7 @@ Drive::description () const return String::compose(_("%1 (%2 GB) [%3]"), name, gb, _device); } + string Drive::log_summary () const { |
