Make parameter more readable.

This commit is contained in:
Pavel Sanda 2013-04-13 21:56:52 -07:00
parent 7309f018f5
commit fb16e5cca1
2 changed files with 4 additions and 4 deletions

View File

@ -99,11 +99,11 @@ bool VCS::makeRCSRevision(string const &version, string &revis) const
}
bool VCS::checkparentdirs(FileName const & file, std::string const & pathname)
bool VCS::checkparentdirs(FileName const & file, std::string const & vcsdir)
{
FileName dirname = file.onlyPath();
do {
FileName tocheck = FileName(addName(dirname.absFileName(), pathname));
FileName tocheck = FileName(addName(dirname.absFileName(), vcsdir));
LYXERR(Debug::LYXVC, "check file: " << tocheck.absFileName());
if (tocheck.exists())
return true;

View File

@ -102,8 +102,8 @@ public:
virtual bool prepareFileRevisionEnabled() = 0;
/// Check the directory of file and all parent directories
/// for the existence of the given pathname
static bool checkparentdirs(support::FileName const & file, std::string const & pathname);
/// for the existence of repository-info like .git or .svn
static bool checkparentdirs(support::FileName const & file, std::string const & vcsdir);
protected:
/// parse information from the version file