commit 8c805db9d3c6c333291374ba6b1b9728f87187cc
Author: Richard Kimberly Heck <rikih...@lyx.org>
Date:   Fri Dec 18 17:35:58 2020 -0500
    Typo
---
 src/VCBackend.cpp         |    4 ++--
 src/VCBackend.h           |    3 ++-
 src/support/filetools.cpp |    2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/VCBackend.cpp b/src/VCBackend.cpp
index f1f19b2..48cb618 100644
--- a/src/VCBackend.cpp
+++ b/src/VCBackend.cpp
@@ -161,8 +161,8 @@ bool RCS::retrieve(FileName const & file)
 {
        LYXERR(Debug::LYXVC, "LyXVC::RCS: retrieve.\n\t" << file);
        // The caller ensures that file does not exist, so no need to check 
that.
-       return doVCCommandCall("co -q -r " + 
quoteName(file.toFilesystemEncoding()),
-                              FileName()) == 0;
+       int const ret = doVCCommandCall("co -q -r " + 
quoteName(file.toFilesystemEncoding()));
+       return ret == 0;
 }
 
 
diff --git a/src/VCBackend.h b/src/VCBackend.h
index ed4201a..e7dc735 100644
--- a/src/VCBackend.h
+++ b/src/VCBackend.h
@@ -129,7 +129,8 @@ protected:
         * @param path the path from which to execute
         * @return exit status
         */
-       static int doVCCommandCall(std::string const & cmd, support::FileName 
const & path);
+       static int doVCCommandCall(std::string const & cmd,
+                       support::FileName const & path = support::FileName());
 
        /// The status of the VC controlled file.
        VCStatus vcstatus_;
diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp
index 88b8be1..a5168d4 100644
--- a/src/support/filetools.cpp
+++ b/src/support/filetools.cpp
@@ -1147,7 +1147,7 @@ cmd_ret const runCommand(string const & cmd)
 FileName const findtexfile(string const & fil, string const & /*format*/,
                                                   bool const onlykpse)
 {
-       /* There is no problem to extend this function too use other
+       /* There is no problem to extend this function to use other
           methods to look for files. It could be setup to look
           in environment paths and also if wanted as a last resort
           to a recursive find. One of the easier extensions would
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to