Remove QStringView metatype declaration
It was required back in Qt 5 times, so that we could use qvariant_cast<> or QVariant.value() on it. Not required in Qt 6 anymore. As a drive-by: cleanup some unneeded includes in qstringview.cpp Task-number: QTBUG-102350 Pick-to: 6.4 Change-Id: Idbcdc5cfe62cf4a55b86e227106d7a997997e0ba Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
8b5cce6911
commit
593b0a01c5
@ -48,7 +48,6 @@ QT_WARNING_DISABLE_GCC("-Wfree-nonheap-object") // false positive tracking
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QT_IMPL_METATYPE_EXTERN(QStringView)
|
||||
QT_IMPL_METATYPE_EXTERN_TAGGED(QList<Qt::DayOfWeek>, QList_Qt__DayOfWeek)
|
||||
#ifndef QT_NO_SYSTEMLOCALE
|
||||
QT_IMPL_METATYPE_EXTERN_TAGGED(QSystemLocale::CurrencyToStringArgument,
|
||||
|
@ -494,8 +494,6 @@ enum { AsciiSpaceMask = (1u << (' ' - 1)) |
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
// ### move to qstringview.h
|
||||
QT_DECL_METATYPE_EXTERN(QStringView, Q_CORE_EXPORT)
|
||||
// ### move to qnamespace.h
|
||||
QT_DECL_METATYPE_EXTERN_TAGGED(QList<Qt::DayOfWeek>, QList_Qt__DayOfWeek, Q_CORE_EXPORT)
|
||||
#ifndef QT_NO_SYSTEMLOCALE
|
||||
|
@ -2,8 +2,6 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
#include "qstringview.h"
|
||||
#include "qstring.h"
|
||||
#include "qlocale_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user