Build fixes for Boost >= 1.73
[dcpomatic.git] / src / wx / christie_certificate_panel.cc
index 0795b09e9855c89300516f62fb29cf0713565477..c4584ed3c304f8a096664571f1eca431a61d9c3f 100644 (file)
@@ -28,6 +28,9 @@
 using std::string;
 using boost::optional;
 using boost::bind;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
 
 ChristieCertificatePanel::ChristieCertificatePanel (DownloadCertificateDialog* dialog)
        : CredentialsDownloadCertificatePanel (
@@ -60,13 +63,13 @@ ChristieCertificatePanel::do_download ()
 
        optional<string> all_errors;
 
-       optional<string> error = get_from_url (url, true, false, boost::bind (&DownloadCertificatePanel::load, this, _1));
+       optional<string> error = get_from_url (url, true, false, boost::bind(&DownloadCertificatePanel::load_certificate_from_chain, this, _1));
        if (error) {
                all_errors = *error;
 
                string const url = String::compose ("%1IMB-S2/IMB-S2_%2_sha256.pem", prefix, serial);
 
-               error = get_from_url (url, true, false, boost::bind (&DownloadCertificatePanel::load, this, _1));
+               error = get_from_url (url, true, false, boost::bind(&DownloadCertificatePanel::load_certificate_from_chain, this, _1));
                if (error) {
                        *all_errors += "\n" + *error;
                }
@@ -76,7 +79,7 @@ ChristieCertificatePanel::do_download ()
                _dialog->message()->SetLabel(wxT(""));
                error_dialog (this, std_to_wx(*all_errors));
        } else {
-               _dialog->message()->SetLabel (_("Certificate dowloaded"));
+               _dialog->message()->SetLabel (_("Certificate downloaded"));
                _dialog->setup_sensitivity ();
        }
 }