]> git.lyx.org Git - features.git/commitdiff
Add some comments.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 30 Jul 2008 07:55:53 +0000 (07:55 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 30 Jul 2008 07:55:53 +0000 (07:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25999 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index ac1e376d928024e3f05518626ce33d46813d7bc6..46b5ceec5333f8bcf47198f90cc4b067a1fa3dd6 100644 (file)
@@ -817,10 +817,11 @@ bool operator==(FileName const & lhs, FileName const & rhs)
        // This is supposed to be fixed for Qt5.
 
        if (lhs.empty())
+               // QFileInfo::operator==() returns false if the two QFileInfo are empty.
                return rhs.empty();
 
        if (rhs.empty())
-               // Avoid unnecessary checks.
+               // Avoid unnecessary checks below.
                return false;
 
        lhs.d->refresh();
@@ -829,6 +830,7 @@ bool operator==(FileName const & lhs, FileName const & rhs)
        if (!lhs.d->fi.isSymLink() && !rhs.d->fi.isSymLink())
                return lhs.d->fi == rhs.d->fi;
 
+       // FIXME: When/if QFileInfo support symlink comparison, remove this code.
        QFileInfo fi1(lhs.d->fi);
        if (fi1.isSymLink())
                fi1 = QFileInfo(fi1.symLinkTarget());