Doc: don't promise a null QString if we can't be held to it
QDirIterator::next() returns QDirIterator::filePath(), which returns QFileInfo::filePath() on a default-constructed QFileInfo. That specifically returns a non-null QString for some reason. I don't know why but I won't change it. Task-number: QTBUG-35422 Change-Id: I6bbcf8b83153e44c36d6320d27ce223ef28503ba Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
fca917c1cc
commit
b5672f10e6
@ -477,7 +477,7 @@ QDirIterator::~QDirIterator()
|
|||||||
/*!
|
/*!
|
||||||
Advances the iterator to the next entry, and returns the file path of this
|
Advances the iterator to the next entry, and returns the file path of this
|
||||||
new entry. If hasNext() returns \c false, this function does nothing, and
|
new entry. If hasNext() returns \c false, this function does nothing, and
|
||||||
returns a null QString.
|
returns an empty QString.
|
||||||
|
|
||||||
You can call fileName() or filePath() to get the current entry file name
|
You can call fileName() or filePath() to get the current entry file name
|
||||||
or path, or fileInfo() to get a QFileInfo for the current entry.
|
or path, or fileInfo() to get a QFileInfo for the current entry.
|
||||||
|
Loading…
Reference in New Issue
Block a user