The typical use-case is calling hasNext() first before using next, but the API docs say that calling next() even when hasNext() is false, should just return an empty string. [ChangeLog][QtCore][QDirIterator] Fixed a crash that happened if you called next() after hasNext() had already returned false. Ideally you should never call next() without first calling hasNext() as that could lead to unexpected results (for example, infinite loops). Fixes: QTBUG-130142 Change-Id: If0a8b1fe7dbd13b45793409a7a241e53c7257f24 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit c7691842f743f568a073582c8f0cacd6ee188f98) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%