From e2b303124f8d460ec091b7c4caa0c37391bc245a Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 10 Dec 2022 07:41:34 -0800 Subject: [PATCH] QVarLengthArray: implement ### Qt 7 remarks The header qvarlengtharray.h isn't listed for the Bootstrap lib, but it is used by several .cpp files that are in that lib (like qstring.cpp). Change-Id: I69ecc04064514f939896fffd172f78e0f4e37391 Reviewed-by: Fabian Kosmale --- src/corelib/tools/qvarlengtharray.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/corelib/tools/qvarlengtharray.h b/src/corelib/tools/qvarlengtharray.h index bd38e2dcc1..27083442c5 100644 --- a/src/corelib/tools/qvarlengtharray.h +++ b/src/corelib/tools/qvarlengtharray.h @@ -241,8 +241,13 @@ protected: // Prealloc = 256 by default, specified in qcontainerfwd.h template class QVarLengthArray - : public QVLABase, // ### Qt 7: swap base class order +#if QT_VERSION >= QT_VERSION_CHECK(7,0,0) || defined(QT_BOOTSTRAPPED) + : public QVLAStorage, + public QVLABase +#else + : public QVLABase, public QVLAStorage +#endif { template friend class QVarLengthArray;