C++11 tidying.
authorCarl Hetherington <cth@carlh.net>
Thu, 9 Jun 2022 19:16:12 +0000 (21:16 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 10 Jun 2022 21:12:13 +0000 (23:12 +0200)
src/lib/string_text_file.cc
src/tools/dcpomatic.cc

index b8ca27e160ca989ad283768f963a1bdf974546db..76abe547f35045413e1a7b945f72a939d59ea72a 100644 (file)
@@ -118,7 +118,7 @@ optional<ContentTime>
 StringTextFile::first () const
 {
        if (_subtitles.empty()) {
-               return optional<ContentTime>();
+               return {};
        }
 
        return ContentTime::from_seconds(_subtitles[0].from.all_as_seconds());
@@ -128,7 +128,7 @@ ContentTime
 StringTextFile::length () const
 {
        if (_subtitles.empty ()) {
-               return ContentTime ();
+               return {};
        }
 
        return ContentTime::from_seconds (_subtitles.back().to.all_as_seconds ());
index e9302c6a0a4a461b4b793f849f37c5b52b3908fc..65574cc67e349b121174264c1bf11154f2b35065 100644 (file)
@@ -458,7 +458,7 @@ public:
 
                set_film (film);
 
-               JobManager::instance()->add(shared_ptr<Job>(new CheckContentChangeJob(film)));
+               JobManager::instance()->add(make_shared<CheckContentChangeJob>(film));
        }
        catch (FileNotFoundError& e) {
                auto const dir = e.file().parent_path();