qt5base-lts/qmake
Giuseppe D'Angelo 784a290c4b QFileInfo: mark constructors as explicit
These look like leftovers (API flaws).

Construction of QFileInfo from QString (or similar) should be not
implicit, as QFileInfo construction is expensive (might hit the file
system), and this may have users overlook APIs (for instance build a
QFileInfo out of QDirIterator::next(), instead of using ::fileInfo();
using QDir::entryList instead of entryInfoList; etc.).

Leave an opt-out mechanism to ease porting.

Fix a handful of usages around qtbase, with at least a couple of them
likely to be actual "sloppy" code.

[ChangeLog][Potentially Source-Incompatible Changes][QFileInfo] Most
QFileInfo constructors are now explicit. The
QT_IMPLICIT_QFILEINFO_CONSTRUCTION macro is provided to keep old code
working.

Change-Id: Ic580e6316e67edbc840aa0c60d98c7aaabaf1af6
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-11-15 18:30:16 +01:00
..
doc Android: recommend against using ANDROID_ABIS inside the project file 2020-11-10 13:23:09 +00:00
generators QFileInfo: mark constructors as explicit 2020-11-15 18:30:16 +01:00
library qmake: Fix qHash-related integer conversion warnings 2020-10-17 11:56:59 +02:00
.prev_CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
cachekeys.h qmake: Fix qHash-related integer conversion warnings 2020-10-17 11:56:59 +02:00
CMakeLists.txt Build Qt (and client apps using it) with /permissive- 2020-11-10 20:01:49 +01:00
main.cpp Make "qmake -qtconf my-qt.conf -install ..." possible 2020-10-23 21:11:50 +02:00
Makefile.unix Reimplement QSequentialIterable using QMetaSequence 2020-09-03 08:27:44 +02:00
Makefile.unix.macos macOS: Merge qcore_mac cpp and mm files 2020-03-12 06:07:35 +01:00
Makefile.unix.mingw Compile QRegularExpression into qmake 2020-05-05 18:41:20 +02:00
Makefile.unix.unix Move the readlink(2) wrapper to qcore_unix.cpp 2017-07-08 02:18:16 +00:00
Makefile.unix.win32 Compile QRegularExpression into qmake 2020-05-05 18:41:20 +02:00
Makefile.win32 Reimplement QSequentialIterable using QMetaSequence 2020-09-03 08:27:44 +02:00
meta.cpp qmake: Remove dead code 2019-04-05 07:48:34 +00:00
meta.h qmake: Remove dead code 2019-04-05 07:48:34 +00:00
option.cpp Make "qmake -qtconf my-qt.conf -query" possible 2020-10-23 21:11:46 +02:00
option.h Remove QMake's -createstub option 2019-08-03 14:48:10 +02:00
project.cpp Port qmake from QStringRef to QStringView 2020-06-05 09:07:14 +02:00
project.h Port qmake from QStringRef to QStringView 2020-06-05 09:07:14 +02:00
property.cpp Rename QLibraryInfo::location() to path() 2020-09-12 23:35:56 +02:00
property.h move generation of qconfig.cpp (and qt.conf) to qmake-based configure 2016-12-13 18:56:12 +00:00
qmake_pch.h Move QRegExp and its remaining mentions out of QtCore 2020-07-13 10:53:23 +02:00
qmake-aux.pro revert to building qmake with qconfig.cpp 2017-01-06 20:09:08 +00:00
qmake.pro Reimplement QSequentialIterable using QMetaSequence 2020-09-03 08:27:44 +02:00