qt5base-lts/tests/auto/corelib/io/qfile
Marc Mutz 6cc830f7a6 tst_QFile: fix GCC -Wignored-qualifiers
The decltype() of a const auto variable will be const T, for some
T. GCC warns that in the static_cast, said const is ignored.

Fix by not casting, but declaring a variable of fitting type. Add a
scope so the next reader doesn't have to go hunting for further uses
of 'readResult' or, now, 'expected'.

Change-Id: Iebc828a522810c6f2514fb3542d8c76c755ec7a5
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2021-07-09 17:59:01 +02:00
..
resources
stdinprocess Remove the qmake project files 2021-01-07 15:32:28 +01:00
.gitattributes
.gitignore tst_qfile: Fix execution for WinRT 2018-06-28 15:43:58 +00:00
CMakeLists.txt Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
copy-fallback.qrc
dosfile.txt
forCopying.txt
forRenaming.txt
noendofline.txt
qfile.qrc
rename-fallback.qrc
testfile.txt
testlog.txt
tst_qfile.cpp tst_QFile: fix GCC -Wignored-qualifiers 2021-07-09 17:59:01 +02:00
two.dots.file