Use libdcp's warnings.h
[dcpomatic.git] / src / lib / atmos_content.cc
index 2e59b92b7f288d1653189efd9399a2d7803730b1..ada304dad1c698d5d167230b1f7b42ccbb6dc0ee 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 #include "atmos_content.h"
 #include <dcp/raw_convert.h>
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <libxml++/libxml++.h>
+LIBDCP_ENABLE_WARNINGS
 
 
+using std::make_shared;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 int const AtmosContentProperty::EDIT_RATE = 700;
@@ -51,10 +55,10 @@ shared_ptr<AtmosContent>
 AtmosContent::from_xml (Content* parent, cxml::ConstNodePtr node)
 {
        if (!node->optional_node_child("AtmosLength")) {
-               return shared_ptr<AtmosContent>();
+               return {};
        }
 
-       return shared_ptr<AtmosContent> (new AtmosContent(parent, node));
+       return make_shared<AtmosContent>(parent, node);
 }