diff options
author | Matthew Dawson <matthew@mjdsystems.ca> | 2015-11-09 09:42:42 -0500 |
---|---|---|
committer | Matthew Dawson <matthew@mjdsystems.ca> | 2015-11-09 09:42:42 -0500 |
commit | 0f1e67051dae0c9b1f23461f7caed594795e8a27 (patch) | |
tree | 5cf8a52cf505ba7a4448edeb4861470335387bc3 /autotests/kconfig_compiler/test8main.cpp | |
parent | 809e7156b21c5cecea68fc474d210d1068372ef9 (diff) | |
download | kconfig-0f1e67051dae0c9b1f23461f7caed594795e8a27.tar.gz kconfig-0f1e67051dae0c9b1f23461f7caed594795e8a27.tar.bz2 |
In KConfigTest::testEntryMap, convert QByteArray with nulls using a char *
Due to https://codereview.qt-project.org/#/c/106473/, Qt 5.6 keeps null
characters in QByteArray -> QString conversions, which breaks this test as
one QByteArray contains nulls. Instead, convert the QByteArray to const
char * first, so QString stops at the first null.
The actual behaviour of KConfig is unchanged, as internally the conversion
always went through a const char *, which avoids creating QStrings with
null characters.
REVIEW: 126001
Diffstat (limited to 'autotests/kconfig_compiler/test8main.cpp')
0 files changed, 0 insertions, 0 deletions