mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Partially fix http://bugzilla.lyx.org/show_bug.cgi?id=2771
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:
parent
64e1fc3bf4
commit
07719210df
@ -811,13 +811,18 @@ docstring const FileName::relPath(string const & path) const
|
|||||||
|
|
||||||
bool operator==(FileName const & lhs, FileName const & rhs)
|
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)
|
bool operator!=(FileName const & lhs, FileName const & rhs)
|
||||||
{
|
{
|
||||||
return lhs.absFilename() != rhs.absFilename();
|
return !(operator==(lhs, rhs));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -186,6 +186,7 @@ public:
|
|||||||
docstring const absoluteFilePath() const;
|
docstring const absoluteFilePath() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
friend bool operator==(FileName const &, FileName const &);
|
||||||
///
|
///
|
||||||
struct Private;
|
struct Private;
|
||||||
Private * const d;
|
Private * const d;
|
||||||
|
Loading…
Reference in New Issue
Block a user