diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-05-22 14:24:01 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-06-11 15:52:25 +0200 |
commit | 39e229fe13a2112dcc5d033f4535fd019aab800b (patch) | |
tree | 42ab8a99c397e22b78cbbec4b2c2346e275fb51e /src/corelib/io | |
parent | 8ea11e0cf7f442f687089ffdf54de1f7540cb20b (diff) |
Remove more QStringRef overloads that aren't required
The QStringView versions will do the job just fine :)
Task-number: QTBUG-84319
Change-Id: I376b310deb27683fd98bbcc55e0f56014cacecc3
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/corelib/io')
-rw-r--r-- | src/corelib/io/qdebug.cpp | 14 | ||||
-rw-r--r-- | src/corelib/io/qdebug.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/corelib/io/qdebug.cpp b/src/corelib/io/qdebug.cpp index 11f2b9f3c9..e8933b4526 100644 --- a/src/corelib/io/qdebug.cpp +++ b/src/corelib/io/qdebug.cpp @@ -634,20 +634,6 @@ QDebug &QDebug::resetFormat() */ /*! - \fn QDebug &QDebug::operator<<(const QStringRef &t) - - Writes the string, \a t, to the stream and returns a reference to the - stream. Normally, QDebug prints the string inside quotes and transforms - non-printable characters to their Unicode values (\\u1234). - - To print non-printable characters without transformation, enable the - noquote() functionality. Note that some QDebug backends might not be 8-bit - clean. - - See the QString overload for examples. -*/ - -/*! \since 5.10 \fn QDebug &QDebug::operator<<(QStringView s) diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index 22ba3879f4..9ee19f5fd4 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -158,7 +158,6 @@ public: inline QDebug &operator<<(const char* t) { stream->ts << QString::fromUtf8(t); return maybeSpace(); } #if QT_STRINGVIEW_LEVEL < 2 inline QDebug &operator<<(const QString & t) { putString(t.constData(), uint(t.length())); return maybeSpace(); } - inline QDebug &operator<<(const QStringRef & t) { putString(t.constData(), uint(t.length())); return maybeSpace(); } #endif inline QDebug &operator<<(QStringView s) { putString(s.data(), size_t(s.size())); return maybeSpace(); } inline QDebug &operator<<(QLatin1String t) { putByteArray(t.latin1(), t.size(), ContainsLatin1); return maybeSpace(); } |