X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Frecreate_chain_dialog.cc;h=59fbeb6c715d44e73f11949f2054e0ac7498e625;hb=964cfede2ccf10f8af2c9dd83f24f790020c6162;hp=ae6afdd08d46c5bf10dfb588ed48a4619da3a4bb;hpb=47e29203daec51d313ed8ab8ef759752bce18d45;p=dcpomatic.git diff --git a/src/wx/recreate_chain_dialog.cc b/src/wx/recreate_chain_dialog.cc index ae6afdd08..59fbeb6c7 100644 --- a/src/wx/recreate_chain_dialog.cc +++ b/src/wx/recreate_chain_dialog.cc @@ -23,11 +23,13 @@ #include "static_text.h" #include "check_box.h" #include "lib/config.h" -#include 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 nag) : QuestionDialog (parent, _("Certificate chain"), title, cancel) @@ -36,9 +38,9 @@ RecreateChainDialog::RecreateChainDialog (wxWindow* parent, wxString title, wxSt _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 ();