]> git.lyx.org Git - lyx.git/blobdiff - src/ConverterCache.cpp
* header_check.sh: filter headers; we should suspect only .h files.
[lyx.git] / src / ConverterCache.cpp
index 77ba7b32e64210ddbe80309976050255c0b89349..40390bca8e175aedb680177eaf95965f7a0a8205 100644 (file)
@@ -431,7 +431,7 @@ FileName const & ConverterCache::cacheName(FileName const & orig_from,
        LYXERR(Debug::FILES, orig_from << ' ' << to_format);
 
        CacheItem * const item = pimpl_->find(orig_from, to_format);
-       LASSERT(item, /**/);
+       LASSERT(item, { static const FileName fn; return fn; });
        return item->cache_name;
 }
 
@@ -455,7 +455,7 @@ bool ConverterCache::copy(FileName const & orig_from, string const & to_format,
        }
 
        CacheItem * const item = pimpl_->find(orig_from, to_format);
-       LASSERT(item, /**/);
+       LASSERT(item, return false);
        Mover const & mover = getMover(to_format);
        return mover.copy(item->cache_name, dest,
                          onlyFileName(dest.absFileName()));