Clarified code documentation for QFileInfo::operator==.
authorMitch Curtis <mitch.curtis@nokia.com>
Tue, 22 May 2012 14:27:47 +0000 (16:27 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 23 May 2012 12:18:34 +0000 (14:18 +0200)
commitbbafdf58124266db9c4285838f1a300e8afa0371
treeb9f35a5c10f667932a117a49058c5baa0ce3aec9
parent318d39ccafc6ca4fa643bbf0b4b10a7d97ff1716
Clarified code documentation for QFileInfo::operator==.

QTBUG-4031 mentions that canonicalFilePath() will cause the operator
to return true for the following comparison because it returns an
empty string if the path is empty or non-existant:

QFileInfo("") == QFileInfo("non_existant_file")

I'm assuming that the reason for not checking whether one of the files
exist is based on performance, and so I've updated the comments for the
operator to explicitly state that the result of the above comparison is
undefined.

Task-number: QTBUG-4031
Change-Id: I9b34f189f1628f9362b3604445706abd2342fd6e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/io/qfileinfo.cpp