Replace deprecated leaf() with filename().
[dcpomatic.git] / src / wx / download_certificate_panel.cc
index b3de4ca2c427e16aa8981dd78ff13432073adae7..3f1509f60d912eb98832290854c5dbf212bbaec8 100644 (file)
@@ -74,7 +74,7 @@ optional<string>
 DownloadCertificatePanel::load_certificate_from_chain (boost::filesystem::path file, string url)
 {
        try {
-               _certificate = dcp::CertificateChain (dcp::file_to_string(file)).leaf();
+               _certificate = dcp::CertificateChain(dcp::file_to_string(file)).leaf();
                _url = url;
        } catch (dcp::MiscError& e) {
                return String::compose(wx_to_std(_("Could not read certificate file (%1)")), e.what());