Little C++11 cleanup.
authorCarl Hetherington <cth@carlh.net>
Sat, 9 Jul 2022 18:40:21 +0000 (20:40 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 11 Jul 2022 10:22:11 +0000 (12:22 +0200)
src/wx/content_view.cc

index 57a5535c9bd8eb1b3d3208d77fb66ec4b19204f7..80256987971e654e6e1bdeb49c193e5cc94de80d 100644 (file)
@@ -95,7 +95,7 @@ ContentView::update ()
 
                        shared_ptr<Content> content;
                        if (is_directory(i) && (is_regular_file(i / "ASSETMAP") || is_regular_file(i / "ASSETMAP.xml"))) {
-                               content.reset (new DCPContent(i));
+                               content = make_shared<DCPContent>(i);
                        } else if (i.path().extension() == ".mp4") {
                                auto all_content = content_factory(i);
                                if (!all_content.empty()) {