Fix message for high bitrate frames during verify.
[dcpomatic.git] / src / wx / system_font_dialog.cc
index 6b0a650c7ac426819ad2076122bf16eae1700cb1..9814ededd07e70ebc4bab5d524c814201be18425 100644 (file)
 
 #include "system_font_dialog.h"
 #include "wx_util.h"
-#include "lib/warnings.h"
-DCPOMATIC_DISABLE_WARNINGS
+#include <dcp/filesystem.h>
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/listctrl.h>
-DCPOMATIC_ENABLE_WARNINGS
+LIBDCP_ENABLE_WARNINGS
 #include <boost/filesystem.hpp>
-#include <iostream>
 
 
-using std::cout;
 using std::string;
 using boost::optional;
 
@@ -45,7 +44,7 @@ SystemFontDialog::SystemFontDialog (wxWindow* parent)
                fonts = boost::filesystem::path (windir) / "Fonts";
        }
 
-       for (auto i: boost::filesystem::directory_iterator (fonts)) {
+       for (auto i: dcp::filesystem::directory_iterator(fonts)) {
                auto ext = i.path().extension().string();
                transform (ext.begin(), ext.end(), ext.begin(), ::tolower);
 
@@ -63,7 +62,7 @@ SystemFontDialog::SystemFontDialog (wxWindow* parent)
 
        int n = 0;
        for (auto i: _fonts) {
-               _list->InsertItem (n++, std_to_wx (i.leaf().stem().string ()));
+               _list->InsertItem(n++, std_to_wx(i.filename().stem().string()));
        }
 
        auto buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);