qt6-bb10/tests/auto/corelib/serialization
Edward Welbourne bc099f33dd Support QCborMap::operator[] taking a string literal
Use a template on the size of the char[], as suggested by Ville
Voutilainen.  This resolves ambiguity about whether such look-ups
should be done via QString or QCborValue (not that it would have made
any difference).

When we come to add mutating indexing of QCborValue, chained
dereferences like map[i][j][k] need to stay in operator[] const
throughout, to avoid detaching intermediates to create references into
them due to using the mutating operator[] on the earlier dereference's
return.  So const-qualify the QCborValue operator[] const variants at
the same time, to match those of QCborValue itself.

Change-Id: Ib1652ae9440fe3767a653afa2856b74040210e07
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2018-10-08 14:11:23 +00:00
..
json QJsonDocument: Make emptyObject an object 2018-07-31 09:33:42 +00:00
qcborstreamreader QCborStreamReader: use QByteArray directly if possible 2018-06-06 17:48:00 +00:00
qcborstreamwriter Long live QCborStreamWriter! 2018-05-27 22:41:41 +00:00
qcborvalue Support QCborMap::operator[] taking a string literal 2018-10-08 14:11:23 +00:00
qcborvalue_json QCborValue: move the toDiagnosticNotation() function to its own file 2018-07-30 16:21:12 +00:00
qdatastream Add a QPalette color role for placeholder texts 2018-05-04 08:53:06 +00:00
qtextstream Add QTextStream operators for QStringView 2018-07-20 20:51:08 +00:00
qxmlstream Fix QXmlStreamWriter xmlns attribute placement 2018-09-28 13:19:48 +00:00
serialization.pro QCborValue: add support for QVariant and JSON conversions 2018-06-08 07:46:41 +00:00