]> git.lyx.org Git - features.git/commitdiff
Typo
authorRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 18 Dec 2020 22:35:58 +0000 (17:35 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 18 Dec 2020 22:35:58 +0000 (17:35 -0500)
src/VCBackend.cpp
src/VCBackend.h
src/support/filetools.cpp

index f1f19b23a38c83064fc009ca6191a5fd686274a2..48cb618e74c059a0b4be09626f90424d21f6fb5c 100644 (file)
@@ -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;
 }
 
 
index ed4201a0838f2345e0eafaebbc3b06131a38c18c..e7dc735b99a71daf6950ba5979460135cec940e1 100644 (file)
@@ -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_;
index 88b8be19ee825724e6136654e945d876fd91c6ea..a5168d4d4a58c81dbcb19c642cdda52c3d67cc8c 100644 (file)
@@ -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