X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fconfirm_kdm_email_dialog.cc;h=66508655785ddf78ed88f2657246d19a5434c1a2;hb=fb027572ee7630a9ba3eeecf20f0b40cf77afb88;hp=df6131fe1d05005b88631c6ed0460acd0ccd4df3;hpb=8f8730cadb3dae36e8aa7b7c732a7c162eac0fb6;p=dcpomatic.git diff --git a/src/wx/confirm_kdm_email_dialog.cc b/src/wx/confirm_kdm_email_dialog.cc index df6131fe1..665086557 100644 --- a/src/wx/confirm_kdm_email_dialog.cc +++ b/src/wx/confirm_kdm_email_dialog.cc @@ -23,25 +23,27 @@ #include "static_text.h" #include "check_box.h" #include "lib/config.h" -#include using std::list; using std::string; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif ConfirmKDMEmailDialog::ConfirmKDMEmailDialog (wxWindow* parent, list emails) : QuestionDialog (parent, _("Confirm KDM email"), _("Send emails"), _("Don't send emails")) { wxString message = _("Are you sure you want to send emails to the following addresses?\n\n"); - BOOST_FOREACH (string i, emails) { + for (auto i: emails) { message += "\t" + std_to_wx (i) + "\n"; } _sizer->Add (new StaticText (this, message), 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); - 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 (&ConfirmKDMEmailDialog::shut_up, this, _1)); + shut_up->bind(&ConfirmKDMEmailDialog::shut_up, this, _1); layout (); }