Store last path for adding KDMs (#2348).
[dcpomatic.git] / src / wx / system_font_dialog.cc
index df5b8e21b647a531ec2914592f0079876f4c0cdc..84285de12e35c6d0e6f09a4f5f0bff7dc3e10ed5 100644 (file)
 
 #include "system_font_dialog.h"
 #include "wx_util.h"
+#include <dcp/filesystem.h>
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/listctrl.h>
+LIBDCP_ENABLE_WARNINGS
 #include <boost/filesystem.hpp>
-#include <iostream>
 
 
-using std::cout;
 using std::string;
 using boost::optional;
 
@@ -42,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);