QStringView: remove pointless Q_ASSERT in toString()
QString and QStringView have the same size_type these days. Change-Id: I59ffe78f51e06ccc130562b1682fb4a672c3ec22 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 8ef22183d67e0e7a8ad00bc0ea48c41510eb84ce) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
81bb1a90e3
commit
c1c740c0b6
@ -1226,7 +1226,7 @@ QString QLatin1StringView::toString() const { return *this; }
|
||||
//
|
||||
|
||||
QString QStringView::toString() const
|
||||
{ return Q_ASSERT(size() == size()), QString(data(), size()); }
|
||||
{ return QString(data(), size()); }
|
||||
|
||||
qint64 QStringView::toLongLong(bool *ok, int base) const
|
||||
{ return QString::toIntegral_helper<qint64>(*this, ok, base); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user