Assorted C++11/formatting cleanups.
[dcpomatic.git] / src / wx / recipients_panel.h
index b33b7ebc88e6e6749f831cfdeae9353500ee584b..aacfccd9a90b96cc2695f3326b85c8a0390f8935 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2015-2020 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2015-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -18,6 +18,7 @@
 
 */
 
+
 #include "lib/dkdm_recipient.h"
 #include "lib/warnings.h"
 DCPOMATIC_DISABLE_WARNINGS
@@ -25,13 +26,14 @@ DCPOMATIC_DISABLE_WARNINGS
 #include <wx/srchctrl.h>
 #include <wx/treectrl.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 #include <list>
 #include <map>
 
+
 class DKDMRecipient;
 
+
 class RecipientsPanel : public wxPanel
 {
 public:
@@ -40,12 +42,12 @@ public:
 
        void setup_sensitivity ();
 
-       std::list<boost::shared_ptr<DKDMRecipient> > recipients () const;
+       std::list<std::shared_ptr<DKDMRecipient>> recipients () const;
        boost::signals2::signal<void ()> RecipientsChanged;
 
 private:
        void add_recipients ();
-       void add_recipient (boost::shared_ptr<DKDMRecipient>);
+       void add_recipient (std::shared_ptr<DKDMRecipient>);
        void add_recipient_clicked ();
        void edit_recipient_clicked ();
        void remove_recipient_clicked ();
@@ -60,7 +62,7 @@ private:
        wxButton* _remove_recipient;
        wxTreeItemId _root;
 
-       typedef std::map<wxTreeItemId, boost::shared_ptr<DKDMRecipient> > RecipientMap;
+       typedef std::map<wxTreeItemId, std::shared_ptr<DKDMRecipient>> RecipientMap;
        RecipientMap _recipients;
        RecipientMap _selected;