]> git.lyx.org Git - features.git/commitdiff
Cosmetics.
authorPavel Sanda <sanda@lyx.org>
Sun, 20 Jul 2008 22:08:32 +0000 (22:08 +0000)
committerPavel Sanda <sanda@lyx.org>
Sun, 20 Jul 2008 22:08:32 +0000 (22:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25741 a592a061-630c-0410-9148-cb99ea01b6c8

src/VCBackend.cpp

index 89b7173e8984208161f316ef744169391fd7b12a..9e80f4ca274b7fa2fe88d1039ee1944f4caea7ba 100644 (file)
@@ -217,20 +217,20 @@ FileName const CVS::findFile(FileName const & file)
 {
        // First we look for the CVS/Entries in the same dir
        // where we have file.
-       FileName const dir(onlyPath(file.absFilename()) + "/CVS/Entries");
+       FileName const entries(onlyPath(file.absFilename()) + "/CVS/Entries");
        string const tmpf = '/' + onlyFilename(file.absFilename()) + '/';
-       LYXERR(Debug::LYXVC, "LyXVC: Checking in `" << dir
+       LYXERR(Debug::LYXVC, "LyXVC: Checking in `" << entries
                             << "' for `" << tmpf << '\'');
-       if (dir.isReadableFile()) {
+       if (entries.isReadableFile()) {
                // Ok we are at least in a CVS dir. Parse the CVS/Entries
                // and see if we can find this file. We do a fast and
                // dirty parse here.
-               ifstream ifs(dir.toFilesystemEncoding().c_str());
+               ifstream ifs(entries.toFilesystemEncoding().c_str());
                string line;
                while (getline(ifs, line)) {
                        LYXERR(Debug::LYXVC, "\tEntries: " << line);
                        if (contains(line, tmpf))
-                               return dir;
+                               return entries;
                }
        }
        return FileName();