X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fdolby_doremi_certificate_panel.cc;h=6eaa1d3aea41e833f652d5c96de671f84d34cd28;hp=ea0207a9ba067875decfd86654c4707e85b1b947;hb=a5d004b0773f633401528392fc28e66d70e13ac8;hpb=f8acc34bcb4401184064598353d6c54df3cab1f9 diff --git a/src/wx/dolby_doremi_certificate_panel.cc b/src/wx/dolby_doremi_certificate_panel.cc index ea0207a9b..6eaa1d3ae 100644 --- a/src/wx/dolby_doremi_certificate_panel.cc +++ b/src/wx/dolby_doremi_certificate_panel.cc @@ -28,7 +28,6 @@ #include #include #include -#include #include using std::string; @@ -36,6 +35,9 @@ using std::cout; using std::list; using boost::function; using boost::optional; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif using dcp::raw_convert; DolbyDoremiCertificatePanel::DolbyDoremiCertificatePanel (DownloadCertificateDialog* dialog) @@ -145,7 +147,7 @@ DolbyDoremiCertificatePanel::do_download () /* Try dcp2000, imb and ims prefixes (see mantis #375) */ - string const prefix = "ftp://anonymous@ftp.cinema.dolby.com/Certificates/"; + string const prefix = "ftp://ftp.cinema.dolby.com/Certificates/"; list urls; list files; @@ -177,7 +179,7 @@ DolbyDoremiCertificatePanel::do_download () list::const_iterator i = urls.begin (); list::const_iterator j = files.begin (); while (!ok && i != urls.end ()) { - optional error = get_from_zip_url (*i++, *j++, true, boost::bind (&DownloadCertificatePanel::load, this, _1)); + optional error = get_from_zip_url (*i++, *j++, true, true, boost::bind (&DownloadCertificatePanel::load_certificate, this, _1)); if (error) { errors.push_back (error.get ()); } else { @@ -192,7 +194,7 @@ DolbyDoremiCertificatePanel::do_download () _dialog->message()->SetLabel (wxT ("")); string s; - BOOST_FOREACH (string e, errors) { + for (auto e: errors) { s += e + "\n"; }