X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffont_config.cc;h=653c9ba84683fec52e4fb39f29e6ca04e104a284;hb=742d96e86a262d0238105bc869ec8f350e36ccae;hp=8804bd6d96522b8aa2baf0a8b9e341405393766e;hpb=22aa0dd620b6db93a64e1e171fb5ddb18693e56e;p=dcpomatic.git diff --git a/src/lib/font_config.cc b/src/lib/font_config.cc index 8804bd6d9..653c9ba84 100644 --- a/src/lib/font_config.cc +++ b/src/lib/font_config.cc @@ -24,6 +24,7 @@ #include "font.h" #include "font_config.h" #include "util.h" +#include #include #include #include @@ -48,7 +49,7 @@ FontConfig::~FontConfig() { for (auto file: _temp_files) { boost::system::error_code ec; - boost::filesystem::remove(file, ec); + dcp::filesystem::remove(file, ec); } } @@ -56,6 +57,8 @@ FontConfig::~FontConfig() string FontConfig::make_font_available(shared_ptr font) { + DCPOMATIC_ASSERT(font); + auto existing = _available_fonts.find(font->content()); if (existing != _available_fonts.end()) { return existing->second;