#include "static_text.h"
#include "check_box.h"
#include "lib/config.h"
-#include "lib/cinema_kdms.h"
-#include <boost/foreach.hpp>
using std::list;
using std::string;
using boost::optional;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
RecreateChainDialog::RecreateChainDialog (wxWindow* parent, wxString title, wxString message, wxString cancel, optional<Config::Nag> nag)
: QuestionDialog (parent, _("Certificate chain"), title, cancel)
_sizer->Add (new StaticText (this, message), 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
if (nag) {
- wxCheckBox* shut_up = new CheckBox (this, _("Don't ask this again"));
+ auto shut_up = new CheckBox (this, _("Don't ask this again"));
_sizer->Add (shut_up, 0, wxALL, DCPOMATIC_DIALOG_BORDER);
- shut_up->Bind (wxEVT_CHECKBOX, bind (&RecreateChainDialog::shut_up, this, _1));
+ shut_up->bind(&RecreateChainDialog::shut_up, this, _1);
}
layout ();