From 1ecc884bfdb050378d25f9b6141c4c55499e2fb7 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Mon, 6 Jul 2020 15:29:51 +0200 Subject: [PATCH] QStringView: Remove outdated note about usage with QList Change-Id: Id1cef09642ccde701e57e8f0a3a3d0e5fcf47e5c Reviewed-by: Thiago Macieira --- src/corelib/text/qstringview.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/corelib/text/qstringview.cpp b/src/corelib/text/qstringview.cpp index 4ad8a8f38ff..a36a98fca42 100644 --- a/src/corelib/text/qstringview.cpp +++ b/src/corelib/text/qstringview.cpp @@ -105,10 +105,6 @@ QT_BEGIN_NAMESPACE allowed in \c constexpr functions). You can use an indexed loop and/or utf16() in \c constexpr contexts instead. - \note We strongly discourage the use of QList, - because QList is a very inefficient container for QStringViews (it would heap-allocate - every element). Use QList (or std::vector) to hold QStringViews instead. - \sa QString, QStringRef */