]> git.lyx.org Git - features.git/commitdiff
Cosmetics. And avoid conversion of EmbeddedFile to FileName. That seems suspicious.
authorRichard Heck <rgheck@comcast.net>
Thu, 27 Mar 2008 05:05:21 +0000 (05:05 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 27 Mar 2008 05:05:21 +0000 (05:05 +0000)
This may change shortly, anyway, though.

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

src/insets/InsetCitation.cpp

index 260bd41bf23aef70e81c2d1524ca8bdff70c2d61..e3d0de3f2d47f73ed894b839f9615a87bc203893 100644 (file)
@@ -142,20 +142,20 @@ docstring complexLabel(Buffer const & buffer,
        static CachedMap cached_keys;
 
        // and cache the timestamp of the bibliography files.
-       static map<FileName, time_t> bibfileStatus;
+       static map<EmbeddedFile, time_t> bibfileStatus;
 
        BiblioInfo biblist;
 
        EmbeddedFileList const & bibfilesCache = buffer.getBibfilesCache();
        // compare the cached timestamps with the actual ones.
        bool changed = false;
-       for (EmbeddedFileList::const_iterator it = bibfilesCache.begin();
-                       it != bibfilesCache.end(); ++ it) {
-               FileName const f = *it;
-               time_t lastw = f.lastModified();
-               if (lastw != bibfileStatus[f]) {
+       EmbeddedFileList::const_iterator ei = bibfilesCache.begin();
+       EmbeddedFileList::const_iterator en = bibfilesCache.end();
+       for (; ei != en; ++ ei) {
+               time_t lastw = ei->lastModified();
+               if (lastw != bibfileStatus[*ei]) {
                        changed = true;
-                       bibfileStatus[f] = lastw;
+                       bibfileStatus[*ei] = lastw;
                }
        }