From 55c007ab910ee9586d6bd2faba165e42f6148622 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 15 Apr 2021 23:51:08 +0200 Subject: C++11 tidying. --- src/lib/dkdm_wrapper.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/lib/dkdm_wrapper.h') diff --git a/src/lib/dkdm_wrapper.h b/src/lib/dkdm_wrapper.h index 261cdc767..0c2992bc4 100644 --- a/src/lib/dkdm_wrapper.h +++ b/src/lib/dkdm_wrapper.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2017 Carl Hetherington + Copyright (C) 2017-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,6 +18,7 @@ */ + #include #include #include @@ -27,8 +28,10 @@ namespace xmlpp { class Element; } + class DKDMGroup; + class DKDMBase : public std::enable_shared_from_this { public: @@ -50,6 +53,7 @@ private: std::shared_ptr _parent; }; + class DKDM : public DKDMBase { public: @@ -68,6 +72,7 @@ private: dcp::EncryptedKDM _dkdm; }; + class DKDMGroup : public DKDMBase { public: @@ -81,14 +86,14 @@ public: void as_xml (xmlpp::Element *) const; - std::list > children () const { + std::list> children () const { return _children; } - void add (std::shared_ptr child, std::shared_ptr previous = std::shared_ptr ()); + void add (std::shared_ptr child, std::shared_ptr previous = std::shared_ptr()); void remove (std::shared_ptr child); private: std::string _name; - std::list > _children; + std::list> _children; }; -- cgit v1.2.3