qt5base-lts/qmake/generators/win32
Marc Mutz 25fff849e8 QDirIterator: add nextFileInfo()
Before this change, next() was the only way to advance the iterator,
whether the caller was ultimately interested in just the filePath()
(good) or not (bad luck, had to call .fileInfo()).

Add a new function, nextFileInfo(), with returns fileInfo() instead.
Incidentally, the returned object has already been constructed as part
of advance()ing the iterator, so the new function is faster than
next() even if the result is ignored, because we're not calculating a
QString result the caller may not be interested in.

Use the new function around the code.

Fix a couple of cases of next(); fileInfo().filePath() (just use
next()'s return value) as a drive-by.

[ChangeLog][QtCore][QDirIterator] Added nextFileInfo(), which is like
next(), but returns fileInfo() instead of filePath().

Change-Id: I601220575961169b44139fc55b9eae6c3197afb4
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-07-28 15:16:42 +02:00
..
mingw_make.cpp MinGW: Use a response file for long include paths 2020-07-06 13:41:37 +00:00
mingw_make.h Port qmake from QStringRef to QStringView 2020-06-05 09:07:14 +02:00
msbuild_objectmodel.cpp qmake: Fix generation of Visual Studio projects 2020-06-17 19:14:52 +02:00
msbuild_objectmodel.h qmake: Apply modernize-use-override 2018-08-08 17:30:23 +00:00
msvc_nmake.cpp QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
msvc_nmake.h Clean up class definitions of makefile generators 2019-05-16 11:36:22 +00:00
msvc_objectmodel.cpp qmake: Support multiple /MERGE:from=to options in MSVC generator 2020-09-18 18:48:58 +00:00
msvc_objectmodel.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
msvc_vcproj.cpp qmake/vcxproj: Fix handling of extra compiler outputs 2020-11-02 15:31:01 +01:00
msvc_vcproj.h Fix dependency resolution for extra compilers in VS projects 2020-01-07 07:16:59 +01:00
msvc_vcxproj.cpp
msvc_vcxproj.h qmake: Apply modernize-use-override 2018-08-08 17:30:23 +00:00
winmakefile.cpp Use QList instead of QVector in qmake 2020-09-05 07:07:44 +02:00
winmakefile.h Port qmake from QStringRef to QStringView 2020-06-05 09:07:14 +02:00