We need to solve these warnings from documentations:
* This will not compare two different symbolic links pointing to the same file.
* Long and short file names that refer to the same file on Windows are treated as if they referred to different files.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25960 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-29 09:07:37 +00:00
parent 64e1fc3bf4
commit 07719210df
2 changed files with 8 additions and 2 deletions

View File

@ -811,13 +811,18 @@ docstring const FileName::relPath(string const & path) const
bool operator==(FileName const & lhs, FileName const & rhs)
{
return lhs.absFilename() == rhs.absFilename();
// FIXME: We need to solve these warnings from documentations:
// * This will not compare two different symbolic links pointing to the same
// file.
// * Long and short file names that refer to the same file on Windows are
// treated as if they referred to different files.
return lhs.d->fi == rhs.d->fi;
}
bool operator!=(FileName const & lhs, FileName const & rhs)
{
return lhs.absFilename() != rhs.absFilename();
return !(operator==(lhs, rhs));
}

View File

@ -186,6 +186,7 @@ public:
docstring const absoluteFilePath() const;
private:
friend bool operator==(FileName const &, FileName const &);
///
struct Private;
Private * const d;