Tidying.
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Jun 2022 23:31:27 +0000 (01:31 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 7 Jun 2022 15:01:06 +0000 (17:01 +0200)
src/lib/writer.cc
test/dcp_subtitle_test.cc

index bc0c5bf878aaefa1aa1c67225070b8572aa1da00..7792dda8e28c7655d7c1c372a3ab7116bda0980e 100644 (file)
 */
 
 
-#include "writer.h"
-#include "compose.hpp"
-#include "film.h"
-#include "ratio.h"
-#include "log.h"
-#include "dcpomatic_log.h"
-#include "dcp_video.h"
-#include "dcp_content_type.h"
+#include "audio_buffers.h"
 #include "audio_mapping.h"
+#include "compose.hpp"
 #include "config.h"
-#include "job.h"
 #include "cross.h"
-#include "audio_buffers.h"
-#include "version.h"
-#include "util.h"
+#include "dcp_content_type.h"
+#include "dcp_video.h"
+#include "dcpomatic_log.h"
+#include "film.h"
+#include "job.h"
+#include "log.h"
+#include "ratio.h"
 #include "reel_writer.h"
 #include "text_content.h"
+#include "util.h"
+#include "version.h"
+#include "writer.h"
 #include <dcp/cpl.h>
 #include <dcp/locale_convert.h>
+#include <dcp/raw_convert.h>
 #include <dcp/reel_file_asset.h>
-#include <fstream>
 #include <cerrno>
-#include <iostream>
 #include <cfloat>
 #include <set>
 
index 640f6510efd71e11b1448646bb2634467cdd9cda..679325a91ef158462549309abedfd2dbaa69a654 100644 (file)
@@ -186,8 +186,8 @@ BOOST_AUTO_TEST_CASE (dcp_subtitle_test4)
        auto film = new_test_film2 ("dcp_subtitle_test4", {content, content2});
        film->set_interop (true);
 
-       content->only_text()->add_font (shared_ptr<Font> (new Font ("font1")));
-       content2->only_text()->add_font (shared_ptr<Font> (new Font ("font2")));
+       content->only_text()->add_font(make_shared<Font>("font1"));
+       content2->only_text()->add_font(make_shared<Font>("font2"));
 
        make_and_verify_dcp (film, { dcp::VerificationNote::Code::INVALID_STANDARD });