From: Carl Hetherington Date: Sat, 20 Oct 2018 14:22:28 +0000 (+0100) Subject: const correctness fix. X-Git-Tag: v2.13.64^0 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=a60b5f373fbc6a014a04ea40b8fd65eb75e09e0e const correctness fix. --- diff --git a/src/lib/content_factory.cc b/src/lib/content_factory.cc index 077ef529e..10486b0c3 100644 --- a/src/lib/content_factory.cc +++ b/src/lib/content_factory.cc @@ -57,7 +57,7 @@ using boost::optional; * @return Content object, or 0 if no content was recognised in the XML. */ shared_ptr -content_factory (shared_ptr film, cxml::NodePtr node, int version, list& notes) +content_factory (shared_ptr film, cxml::ConstNodePtr node, int version, list& notes) { string const type = node->string_child ("Type"); diff --git a/src/lib/content_factory.h b/src/lib/content_factory.h index 9c090c690..f712d9364 100644 --- a/src/lib/content_factory.h +++ b/src/lib/content_factory.h @@ -28,5 +28,5 @@ class Film; class Content; -extern boost::shared_ptr content_factory (boost::shared_ptr, cxml::NodePtr, int, std::list &); +extern boost::shared_ptr content_factory (boost::shared_ptr, cxml::ConstNodePtr, int, std::list &); extern std::list > content_factory (boost::shared_ptr, boost::filesystem::path);