Small C++11 cleanups.
authorCarl Hetherington <cth@carlh.net>
Sun, 28 Nov 2021 09:40:42 +0000 (10:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 28 Nov 2021 20:08:08 +0000 (21:08 +0100)
src/tools/dcpomatic.cc

index 0f86b4940e9615969a5c44c1982ae125a066ca4c..8bcca9b22b721d20d21b1a0f8fec461f5bc20e0e 100644 (file)
@@ -451,12 +451,12 @@ public:
                }
 
                for (auto i: notes) {
-                       error_dialog (0, std_to_wx(i));
+                       error_dialog (nullptr, std_to_wx(i));
                }
 
                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();