]> git.lyx.org Git - lyx.git/commitdiff
make FileName::isZipped more efficient by caching previous results
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 8 Jul 2006 14:16:56 +0000 (14:16 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 8 Jul 2006 14:16:56 +0000 (14:16 +0000)
* src/insets/insetgraphics.C
(copyToDirIfNeeded): replace file_in and zipped arguments with a
FileName argument
(InsetGraphics::prepareFile): adjust call of copyToDirIfNeeded

* src/support/filename.C
(FileName::FileName): set zipped_valid_
(FileName::set): ditto
(FileName::erase): ditto
(isZipped): use zipped_

* src/support/filename.[Ch]
(zipped_): new cache for isZipped()
(zipped_valid_): new, tell whether zipped_ is valid

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14376 a592a061-630c-0410-9148-cb99ea01b6c8


No differences found