diff options
author | Marc Mutz <marc.mutz@qt.io> | 2024-02-27 12:24:08 +0000 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-03-06 11:09:16 +0100 |
commit | ff7e5987ecdd09f87cfcdb4c42039214627dcdb6 (patch) | |
tree | b681f7013a06f42c8c83ecebd093676ea273c772 /src/corelib/text/qstring.h | |
parent | 7f7b5ff3a1b617a3a1add1b1b6ad0718f0dcf143 (diff) |
Revert "QStringView: simplify the constructor from QString"
This reverts commit 7d18ad49a37440835bb38bd77bc4e0991387ada0.
Reason for revert: This changes the constructor from being a template
to being a normal function, so changes overload resolution. The commit
message gave no indication on why this is safe. Since it's just a nice
to have, revert instead of running the risk of breaking code.
Pick-to: 6.7
Change-Id: Icd506e7221bb50c99f276f6a43c15403ec0be7a9
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/corelib/text/qstring.h')
-rw-r--r-- | src/corelib/text/qstring.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h index a76909c081..198b63c995 100644 --- a/src/corelib/text/qstring.h +++ b/src/corelib/text/qstring.h @@ -1540,13 +1540,6 @@ inline QString &&asString(QString &&s) { return std::move(s); } #endif // -// QStringView::QStringView(const QString &) implementation -// - -inline QStringView::QStringView(const QString &str) noexcept - : QStringView(str.isNull() ? nullptr : str.data(), qsizetype(str.size())) {} - -// // QStringView::arg() implementation // |