X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FConverterCache.cpp;h=56a39c775d76da772180919699623742d7a34c99;hb=14001c49fe0fb3d95a0f69f63344e7ae59d28180;hp=d4e8292f7ef645176ae18ac5c4bd0bd8f263343d;hpb=7f461f4392a19cf488dec005d2f12cfea83655d9;p=lyx.git diff --git a/src/ConverterCache.cpp b/src/ConverterCache.cpp index d4e8292f7e..56a39c775d 100644 --- a/src/ConverterCache.cpp +++ b/src/ConverterCache.cpp @@ -25,7 +25,7 @@ #include "support/lyxtime.h" #include "support/Package.h" -#include "support/assert.h" +#include "support/lassert.h" #include #include @@ -216,9 +216,6 @@ ConverterCache::ConverterCache() ConverterCache::~ConverterCache() { - if (!lyxrc.use_converter_cache) - return; - pimpl_->writeIndex(); delete pimpl_; } @@ -248,6 +245,12 @@ void ConverterCache::init() } +void ConverterCache::writeIndex() const +{ + pimpl_->writeIndex(); +} + + void ConverterCache::add(FileName const & orig_from, string const & to_format, FileName const & converted_file) const {