qt6-bb10/src/corelib/serialization
Ivan Solovev 5c4861d312 QCborValue: add asserts to encoding method
This patch is inspired by CodeChecker, that is complaining about
possible nullptr dereferencing.
Currently it is a false-positive, because the codepath suggested by
CodeChecker is impossible with current implementation.
But having asserts can save some time in case of possible refactoring.

Task-number: QTBUG-95727
Pick-to: 6.2
Change-Id: I242a23e8aaa249cce16b867c0884dfc3849977f5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-08-19 16:42:32 +02:00
..
.gitignore
make-xml-parser.sh
qcborarray.cpp
qcborarray.h QJsonValue: add rvalue overloads for QJsonArray and QJsonObject ctors 2021-07-06 19:35:50 +00:00
qcborcommon.cpp Fix use of \inheaderfile 2020-10-07 13:16:59 +02:00
qcborcommon.h CBOR: remove the X11 True and False for good 2020-11-18 14:24:02 -08:00
qcborcommon_p.h
qcbordiagnostic.cpp
qcbormap.cpp
qcbormap.h QJsonValue: add rvalue overloads for QJsonArray and QJsonObject ctors 2021-07-06 19:35:50 +00:00
qcborstream.h
qcborstreamreader.cpp qcborstreamreader.cpp: Use QT_TRY/QT_CATCH 2021-05-23 09:22:04 +00:00
qcborstreamreader.h CBOR: remove the X11 True and False for good 2020-11-18 14:24:02 -08:00
qcborstreamwriter.cpp Replace Q_DECL_UNUSED with [[maybe_unused]] 2020-10-03 11:58:08 +02:00
qcborstreamwriter.h CBOR: remove the X11 True and False for good 2020-11-18 14:24:02 -08:00
qcborvalue.cpp QCborValue: add asserts to encoding method 2021-08-19 16:42:32 +02:00
qcborvalue.h CBOR: remove the X11 True and False for good 2020-11-18 14:24:02 -08:00
qcborvalue_p.h QCborValue: avoid allocating result if data is insufficient 2020-12-06 07:51:19 +00:00
qdatastream.cpp Bump the version of QDataStream 2021-02-18 08:03:19 +01:00
qdatastream.h Bump the version of QDataStream 2021-02-18 08:03:19 +01:00
qdatastream_p.h
qjson_p.h Resolve the remaining open ### Qt6 comments of QJsonValue 2020-08-20 17:25:09 +02:00
qjsonarray.cpp Use qsizetype for size in QJsonArray and QJsonObject 2020-08-18 04:06:04 +02:00
qjsonarray.h Make QStringList an alias to QList<QString> 2020-09-12 23:37:15 +02:00
qjsoncbor.cpp QJsonValue: add rvalue overloads for QJsonArray and QJsonObject ctors 2021-07-06 19:35:50 +00:00
qjsondocument.cpp Replace qt_make_unique with std::make_unique 2020-11-23 09:50:21 +01:00
qjsondocument.h Use qsizetype for size in QJsonArray and QJsonObject 2020-08-18 04:06:04 +02:00
qjsonobject.cpp QJsonObject::take: add missing detach() call 2021-01-27 05:11:39 +00:00
qjsonobject.h QJsonObject: Fix operator<=() 2021-02-18 11:22:51 +00:00
qjsonparser.cpp QJsonObject: fix sorting after parsing from JSON text 2020-09-29 16:14:37 -07:00
qjsonparser_p.h
qjsonvalue.cpp QJsonValue: add rvalue overloads for QJsonArray and QJsonObject ctors 2021-07-06 19:35:50 +00:00
qjsonvalue.h QJsonValue: add rvalue overloads for QJsonArray and QJsonObject ctors 2021-07-06 19:35:50 +00:00
qjsonwriter.cpp
qjsonwriter_p.h
qtextstream.cpp QTextStream: fix a dead write 2021-06-17 01:33:15 +02:00
qtextstream.h QTextStream: purge deprecated API 2020-08-31 10:32:47 +02:00
qtextstream_p.h QTextStream: Always use direct connection inside QDeviceClosedNotifier 2021-07-27 16:16:13 +00:00
qxmlstream.cpp Don't parse XML symbols longer than 4096 characters 2021-04-16 10:08:32 +00:00
qxmlstream.g Correct prefix reported for end element in QXmlStreamReader 2021-04-20 03:03:51 +02:00
qxmlstream.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qxmlstream_p.h XmlStringRef: remove operator<=> 2021-01-04 10:02:44 +01:00
qxmlstreamgrammar.cpp Refactor qxmlstream_p.h 2020-08-19 19:48:09 +02:00
qxmlstreamgrammar_p.h Refactor qxmlstream_p.h 2020-08-19 19:48:09 +02:00
qxmlstreamparser_p.h Correct prefix reported for end element in QXmlStreamReader 2021-04-20 03:03:51 +02:00
qxmlutils.cpp Adjust code format, add space after 'if' 2020-11-16 12:53:37 +00:00
qxmlutils_p.h