qt5base-lts/tests/auto/corelib
Thiago Macieira e99417106f QJsonObject::erase: erase unnecessary and wrong code
Commit 35adb74ddd ("Reimplement JSON
support on top of Cbor") accidentally forgot to multiply by 2 the index
stored in the QJsonObject::iterator. The same mistake was propagated
when QJsonObject::iterator was converted to QJsonValueRef. This had no
ill effects because the o->elements container would always contain more
elements, but it meant the check was ineffective and meant nothing.

So instead of doing nothing when the iterator does not point to this
container, simply assume it does. Bad things will happen if you try to
erase an iterator that points to another container, but that's true for
almost all container/iterator mechanisms.

Drive-by modernization of some of the surrounding lines.

Change-Id: I89446ea06b5742efb194fffd16bb7c322c2fc4f2
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2022-02-15 17:00:04 -08:00
..
animation tst_qanimationgroup: fix memleaks 2022-01-05 08:22:00 +01:00
global Exclude denormal test cases if system doesn't support it 2022-02-15 00:48:23 +02:00
io Cleanup tests that add test data to resources explicitly 2022-02-11 21:54:44 +01:00
itemmodels tst_QItemModel: fix memleaks 2022-01-05 08:22:00 +01:00
kernel Fix failures for tst_eventdispatcher on INTEGRITY 2022-02-15 18:20:40 +00:00
mimetypes Remove unused .qrc files 2022-01-17 23:17:01 +01:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin QPluginLoader: report the right load hints 2022-02-03 03:26:40 +01:00
serialization QJsonObject::erase: erase unnecessary and wrong code 2022-02-15 17:00:04 -08:00
text Exclude denormal test cases if system doesn't support it 2022-02-15 00:48:23 +02:00
thread Activate tst_QFutureWatcher for Android 2022-02-15 00:42:29 +01:00
time Convert a table iteration to use ranged-for 2022-02-15 15:44:51 +01:00
tools Exclude denormal test cases if system doesn't support it 2022-02-15 00:48:23 +02:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00