diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-10-15 14:47:18 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-10-16 12:17:36 +0000 |
commit | dde8d5e3a006c87b7a3f18733ba255d6354fcd37 (patch) | |
tree | 3e4d84c4f8664e98ab244a975f1bd1321dfd10d8 /src/corelib/io/qtextstream.h | |
parent | e9835a3812f91fc4a948a606fd751382d4ecf248 (diff) |
QTextStream: add missing op<<(QStringRef)
It simply is missing. We could wait for QStringView to come around, but
I need this function in uic _now_, so let's add it.
[ChangeLog][QtCore][QTextStream] Can now stream QStringRef without converting
to a QString first.
Change-Id: Idd178e0ba8a89c025f4533d46de912cbdb3883d5
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/corelib/io/qtextstream.h')
-rw-r--r-- | src/corelib/io/qtextstream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qtextstream.h b/src/corelib/io/qtextstream.h index eb33db63d7..d7566e6f7b 100644 --- a/src/corelib/io/qtextstream.h +++ b/src/corelib/io/qtextstream.h @@ -179,6 +179,7 @@ public: QTextStream &operator<<(double f); QTextStream &operator<<(const QString &s); QTextStream &operator<<(QLatin1String s); + QTextStream &operator<<(const QStringRef &s); QTextStream &operator<<(const QByteArray &array); QTextStream &operator<<(const char *c); QTextStream &operator<<(const void *ptr); |