std::shared_ptr
[dcpomatic.git] / src / wx / nag_dialog.cc
index 2226938f349ead205077392df6c78cb1be069fa7..5b989bdb55d4aba2b7a995dbdfc4b110db8fcd92 100644 (file)
 #include "wx_util.h"
 #include "static_text.h"
 #include "check_box.h"
-#include <wx/richtext/richtextctrl.h>
 #include <boost/foreach.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
 
 NagDialog::NagDialog (wxWindow* parent, Config::Nag nag, wxString message, bool can_cancel)
        : wxDialog (parent, wxID_ANY, _("Important notice"))
@@ -33,7 +35,7 @@ NagDialog::NagDialog (wxWindow* parent, Config::Nag nag, wxString message, bool
 {
        wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
        _text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize (400, 300));
-       sizer->Add (_text, 1, wxEXPAND | wxALL, 6);
+       sizer->Add (_text, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
 
        wxCheckBox* b = new CheckBox (this, _("Don't show this message again"));
        sizer->Add (b, 0, wxALL, 6);