summaryrefslogtreecommitdiffstats
path: root/tests/manual/textrendering/codeeditor
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-07-08 09:46:52 +0200
committerMarc Mutz <marc.mutz@qt.io>2024-06-07 05:52:50 +0200
commitde250491318103ca460f94bc140ee28c266cb93a (patch)
treee554ebc5f2cc7e3c61278d42065cf1589d1a3fab /tests/manual/textrendering/codeeditor
parent332a42958f766665050d8d75b794e227ef202df9 (diff)
QDataBuffer: statically assert !QTypeInfo<value_type>::isComplexHEADdev
The implementation assumes this, so assert it. I've tried the moral equivalent of is_pod first, but it turns out most of the concrete value_types aren't trivial, so let's use our own trait for now. Put the static_assert into the dtor to give users a fighting chance to Q_DECLARE_TYPEINFO before first instantiation (the dtor can usually be declared out-of-line to delay instantiation of the assertion). Change-Id: I6c03f7c554b9e07608dee639ab0abc2ddfe3c28a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'tests/manual/textrendering/codeeditor')
0 files changed, 0 insertions, 0 deletions