From: Richard Kimberly Heck Date: Fri, 18 Dec 2020 22:35:58 +0000 (-0500) Subject: Typo X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8c805db9d3c6c333291374ba6b1b9728f87187cc;p=features.git Typo --- diff --git a/src/VCBackend.cpp b/src/VCBackend.cpp index f1f19b23a3..48cb618e74 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 ed4201a083..e7dc735b99 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 88b8be19ee..a5168d4d4a 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