]> git.lyx.org Git - features.git/commit
Fix files with spaces in converter cache;
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 17 May 2007 08:31:00 +0000 (08:31 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 17 May 2007 08:31:00 +0000 (08:31 +0000)
commit89b58024634d5fb6fa2ae05944544f0bbc4a3a28
tree51eb742aab510cb9ce24cb129c268e0ac126d987
parent1137260f553be52846e7eae1e546e00b4b81e708
Fix files with spaces in converter cache;
Delete cached conversions if the converter changes.

* src/frontends/qt4/QPrefs.cpp
(PrefConverters::update_converter): delete cached files since the
new converter might create different ones
(PrefConverters::remove_converter): ditto

* src/support/convert.cpp
(unsigned long convert<unsigned long>): New template specialization

* src/ConverterCache.h
(ConverterCache::remove_all): New method, removes all cached
conversions of a particular converter

* src/ConverterCache.cpp
(CacheType): Also store source file format
(ConverterCache::Impl::readIndex): Handle files with spaces correctly
(ConverterCache::Impl::writeIndex): ditto
(various): adapt to changed CacheType

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18378 a592a061-630c-0410-9148-cb99ea01b6c8
src/ConverterCache.cpp
src/ConverterCache.h
src/frontends/qt4/QPrefs.cpp
src/support/convert.cpp