Cleanup: use new CheckBox::bind().
[dcpomatic.git] / src / wx / film_name_location_dialog.cc
index 098676a9eefcd039ea338864dea1719562125d46..5c6f97f995d7b4c239dbb40ddface8d81d79aa75 100644 (file)
 #endif
 #include "lib/compose.hpp"
 #include "lib/config.h"
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/stdpaths.h>
+LIBDCP_ENABLE_WARNINGS
 #include <boost/filesystem.hpp>
 
 
@@ -75,7 +78,7 @@ FilmNameLocationDialog::FilmNameLocationDialog (wxWindow* parent, wxString title
                        _template_name->Append (std_to_wx(i));
                }
 
-               _use_template->Bind (wxEVT_CHECKBOX, bind(&FilmNameLocationDialog::use_template_clicked, this));
+               _use_template->bind(&FilmNameLocationDialog::use_template_clicked, this);
        }
 
        layout ();