const correctness fix. v2.13.64
authorCarl Hetherington <cth@carlh.net>
Sat, 20 Oct 2018 14:22:28 +0000 (15:22 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 20 Oct 2018 14:22:28 +0000 (15:22 +0100)
src/lib/content_factory.cc
src/lib/content_factory.h

index 077ef529ece8d9282292110e78e1522eda5eeb3a..10486b0c3948130a63081c24f63a49f13fc522f5 100644 (file)
@@ -57,7 +57,7 @@ using boost::optional;
  *  @return Content object, or 0 if no content was recognised in the XML.
  */
 shared_ptr<Content>
-content_factory (shared_ptr<const Film> film, cxml::NodePtr node, int version, list<string>& notes)
+content_factory (shared_ptr<const Film> film, cxml::ConstNodePtr node, int version, list<string>& notes)
 {
        string const type = node->string_child ("Type");
 
index 9c090c690e3f2bc2ebf31442246723c9e0d5830f..f712d9364a1f3bed8666b941b8da19fd07e49cf4 100644 (file)
@@ -28,5 +28,5 @@
 class Film;
 class Content;
 
-extern boost::shared_ptr<Content> content_factory (boost::shared_ptr<const Film>, cxml::NodePtr, int, std::list<std::string> &);
+extern boost::shared_ptr<Content> content_factory (boost::shared_ptr<const Film>, cxml::ConstNodePtr, int, std::list<std::string> &);
 extern std::list<boost::shared_ptr<Content> > content_factory (boost::shared_ptr<const Film>, boost::filesystem::path);