Fix some other thinkos in r21048

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21757 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2007-11-24 01:34:46 +00:00
parent 9170e69786
commit 6820b61afa
3 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ Buffer * checkAndLoadLyXFile(FileName const & filename)
return 0;
}
if (filename.isReadable()) {
if (filename.isFileReadable()) {
Buffer * b = theBufferList().newBuffer(filename.absFilename());
if (!b->loadLyXFile(filename)) {
theBufferList().release(b);

View File

@ -348,7 +348,7 @@ string FileName::guessFormatFromContents() const
// Z \037\235 UNIX compress
// paranoia check
if (empty() || !isReadable())
if (empty() || !isFileReadable())
return string();
ifstream ifs(toFilesystemEncoding().c_str());

View File

@ -231,7 +231,7 @@ FileName const fileSearch(string const & path, string const & name,
string const tmpname = replaceEnvironmentPath(name);
FileName fullname(makeAbsPath(tmpname, path));
// search first without extension, then with it.
if (fullname.isReadable())
if (fullname.isFileReadable())
return fullname;
if (ext.empty())
// We are done.
@ -240,7 +240,7 @@ FileName const fileSearch(string const & path, string const & name,
// fullname.
if (getExtension(fullname.absFilename()) != ext)
fullname = FileName(addExtension(fullname.absFilename(), ext));
if (fullname.isReadable() || mode == allow_unreadable)
if (fullname.isFileReadable() || mode == allow_unreadable)
return fullname;
return FileName();
}