path: root/tests/auto/corelib/io/qfile/tst_qfile.cpp
diff options
authorMarc Mutz <>2017-04-27 13:57:55 +0200
committerMarc Mutz <>2017-04-27 17:04:32 +0000
commit8d3220459223e0cb2cfd06031c70359ecb2d39cd (patch)
tree172f15d6be0ad8a0e61ccdaad179d8cef8d29b68 /tests/auto/corelib/io/qfile/tst_qfile.cpp
parent0803285fe7e6bca32eac77e88a2cb1f47a308865 (diff)
QStringRef: fix trimmed() returning null strings on empty input
The QString API symmetry test strikes again, showing that this is inconsistent with both QString and QByteArray, which both return empty for empty inputs. The fix actually makes the implementation simpler. Extend the QStringRef test to cover null inputs, too. I can't merge the trimmed() test in the API symmetry test until everything is actually consistent. [ChangeLog][QtCore][QStringRef] trimmed() now returns an empty string-ref for an empty input. Before, it would return a null one. Change-Id: I6b35c5f498053c4e15a4a9dd465bc696258e7393 Reviewed-by: Edward Welbourne <> Reviewed-by: Anton Kudryavtsev <>
Diffstat (limited to 'tests/auto/corelib/io/qfile/tst_qfile.cpp')
0 files changed, 0 insertions, 0 deletions