Cleanup: use new CheckBox::bind().
[dcpomatic.git] / src / wx / recreate_chain_dialog.cc
index 92e71af3497f1c05645e5a00144f7daed466cc7f..59fbeb6c715d44e73f11949f2054e0ac7498e625 100644 (file)
@@ -38,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 ();