Add some missing override labels.
[dcpomatic.git] / src / lib / dkdm_wrapper.h
index 261cdc76751e112b511b49e8b390d8cb21aaa858..7227fdc86449ea4ccf9b28fdb8c803fe60878b1c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2017 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2017-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -18,6 +18,7 @@
 
 */
 
+
 #include <dcp/encrypted_kdm.h>
 #include <libcxml/cxml.h>
 #include <memory>
@@ -27,8 +28,10 @@ namespace xmlpp {
        class Element;
 }
 
+
 class DKDMGroup;
 
+
 class DKDMBase : public std::enable_shared_from_this<DKDMBase>
 {
 public:
@@ -50,6 +53,7 @@ private:
        std::shared_ptr<DKDMGroup> _parent;
 };
 
+
 class DKDM : public DKDMBase
 {
 public:
@@ -57,8 +61,8 @@ public:
                : _dkdm (k)
        {}
 
-       std::string name () const;
-       void as_xml (xmlpp::Element *) const;
+       std::string name () const override;
+       void as_xml (xmlpp::Element *) const override;
 
        dcp::EncryptedKDM dkdm () const {
                return _dkdm;
@@ -68,6 +72,7 @@ private:
        dcp::EncryptedKDM _dkdm;
 };
 
+
 class DKDMGroup : public DKDMBase
 {
 public:
@@ -75,20 +80,20 @@ public:
                : _name (name)
        {}
 
-       std::string name () const {
+       std::string name () const override {
                return _name;
        }
 
-       void as_xml (xmlpp::Element *) const;
+       void as_xml (xmlpp::Element *) const override;
 
-       std::list<std::shared_ptr<DKDMBase> > children () const {
+       std::list<std::shared_ptr<DKDMBase>> children () const {
                return _children;
        }
 
-       void add (std::shared_ptr<DKDMBase> child, std::shared_ptr<DKDM> previous = std::shared_ptr<DKDM> ());
+       void add (std::shared_ptr<DKDMBase> child, std::shared_ptr<DKDM> previous = std::shared_ptr<DKDM>());
         void remove (std::shared_ptr<DKDMBase> child);
 
 private:
        std::string _name;
-       std::list<std::shared_ptr<DKDMBase> > _children;
+       std::list<std::shared_ptr<DKDMBase>> _children;
 };