C++11 tidying.
[dcpomatic.git] / src / wx / dolby_doremi_certificate_panel.cc
index b047f6468b119bf0d430a417b09814e69ff0a95f..6eaa1d3aea41e833f652d5c96de671f84d34cd28 100644 (file)
@@ -28,7 +28,6 @@
 #include <dcp/raw_convert.h>
 #include <curl/curl.h>
 #include <zip.h>
-#include <boost/foreach.hpp>
 #include <iostream>
 
 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<string> urls;
        list<string> files;
 
@@ -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";
                }