Add some missing override statements. sub-rework
authorCarl Hetherington <cth@carlh.net>
Sun, 11 Apr 2021 22:38:01 +0000 (00:38 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 11 Apr 2021 23:22:10 +0000 (01:22 +0200)
src/interop_subtitle_asset.h
src/mono_picture_asset.h
src/stereo_picture_asset.h

index f8df3c59d9c0c605d41d44dfbc44792e05ff06c0..b953b303ad4cf5da25479f786dc347a628608a4d 100644 (file)
@@ -66,19 +66,19 @@ public:
                std::shared_ptr<const Asset>,
                EqualityOptions,
                NoteHandler note
-               ) const;
+               ) const override;
 
-       void write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root) const;
-       void add_to_pkl (std::shared_ptr<PKL> pkl, boost::filesystem::path root) const;
+       void write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root) const override;
+       void add_to_pkl (std::shared_ptr<PKL> pkl, boost::filesystem::path root) const override;
 
-       std::vector<std::shared_ptr<LoadFontNode>> load_font_nodes () const;
+       std::vector<std::shared_ptr<LoadFontNode>> load_font_nodes () const override;
 
-       void add_font (std::string load_id, dcp::ArrayData data);
+       void add_font (std::string load_id, dcp::ArrayData data) override;
 
-       std::string xml_as_string () const;
+       std::string xml_as_string () const override;
 
        /** Write this content to an XML file with its fonts alongside */
-       void write (boost::filesystem::path path) const;
+       void write (boost::filesystem::path path) const override;
 
        void resolve_fonts (std::vector<std::shared_ptr<Asset>> assets);
        void add_font_assets (std::vector<std::shared_ptr<Asset>>& assets);
@@ -121,7 +121,7 @@ public:
                return _movie_title;
        }
 
-       int time_code_rate () const {
+       int time_code_rate () const override {
                /* Interop can use either; just pick one */
                return 1000;
        }
@@ -132,7 +132,7 @@ public:
 
 protected:
 
-       std::string pkl_type (Standard s) const {
+       std::string pkl_type (Standard s) const override {
                return static_pkl_type (s);
        }
 
index 505d3c20923a9f2292308d2847ddab8e2846ad93..7a37fa736854d3b43e1143491fb8e62d7c171796 100644 (file)
@@ -73,14 +73,14 @@ public:
         *  @path overwrite true to overwrite an existing file; for use when continuing a write which
         *  previously failed.  If in doubt, use false here.
         */
-       std::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path file, bool overwrite);
+       std::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path file, bool overwrite) override;
        std::shared_ptr<MonoPictureAssetReader> start_read () const;
 
        bool equals (
                std::shared_ptr<const Asset> other,
                EqualityOptions opt,
                NoteHandler note
-               ) const;
+               ) const override;
 
 private:
        std::string cpl_node_name () const;
index 897ed4a4d0eff879cd32ef82a3118a2e4019d0ed..a33650484df90ac4622e2d2a703009b7590e990a 100644 (file)
@@ -58,14 +58,14 @@ public:
        explicit StereoPictureAsset (Fraction edit_rate, Standard standard);
 
        /** Start a progressive write to a StereoPictureAsset */
-       std::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path file, bool);
+       std::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path file, bool) override;
        std::shared_ptr<StereoPictureAssetReader> start_read () const;
 
        bool equals (
                std::shared_ptr<const Asset> other,
                EqualityOptions opt,
                NoteHandler note
-               ) const;
+               ) const override;
 };