diff options
Diffstat (limited to 'src/corelib/io')
-rw-r--r-- | src/corelib/io/qdebug.cpp | 2 | ||||
-rw-r--r-- | src/corelib/io/qdebug.h | 2 | ||||
-rw-r--r-- | src/corelib/io/qtextstream.cpp | 2 | ||||
-rw-r--r-- | src/corelib/io/qtextstream.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/io/qdebug.cpp b/src/corelib/io/qdebug.cpp index a9d0fd4b3f..8c17a61b7e 100644 --- a/src/corelib/io/qdebug.cpp +++ b/src/corelib/io/qdebug.cpp @@ -269,7 +269,7 @@ */ /*! - \fn QDebug &QDebug::operator<<(const QLatin1String &s) + \fn QDebug &QDebug::operator<<(QLatin1String s) Writes the Latin1-encoded string, \a s, to the stream and returns a reference to the stream. diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index e3ecc3662d..6b0eaef9e8 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -113,7 +113,7 @@ public: inline QDebug &operator<<(const char* t) { stream->ts << QString::fromUtf8(t); return maybeSpace(); } inline QDebug &operator<<(const QString & t) { stream->ts << '\"' << t << '\"'; return maybeSpace(); } inline QDebug &operator<<(const QStringRef & t) { return operator<<(t.toString()); } - inline QDebug &operator<<(const QLatin1String &t) { stream->ts << '\"' << t << '\"'; return maybeSpace(); } + inline QDebug &operator<<(QLatin1String t) { stream->ts << '\"' << t << '\"'; return maybeSpace(); } inline QDebug &operator<<(const QByteArray & t) { stream->ts << '\"' << t << '\"'; return maybeSpace(); } inline QDebug &operator<<(const void * t) { stream->ts << t; return maybeSpace(); } inline QDebug &operator<<(QTextStreamFunction f) { diff --git a/src/corelib/io/qtextstream.cpp b/src/corelib/io/qtextstream.cpp index 829eae0c89..89b2226b69 100644 --- a/src/corelib/io/qtextstream.cpp +++ b/src/corelib/io/qtextstream.cpp @@ -2532,7 +2532,7 @@ QTextStream &QTextStream::operator<<(const QString &string) QTextStream. The contents of \a string are converted with the QString constructor that takes a QLatin1String as argument. */ -QTextStream &QTextStream::operator<<(const QLatin1String &string) +QTextStream &QTextStream::operator<<(QLatin1String string) { Q_D(QTextStream); CHECK_VALID_STREAM(*this); diff --git a/src/corelib/io/qtextstream.h b/src/corelib/io/qtextstream.h index 011d43ebb0..42b2904712 100644 --- a/src/corelib/io/qtextstream.h +++ b/src/corelib/io/qtextstream.h @@ -187,7 +187,7 @@ public: QTextStream &operator<<(float f); QTextStream &operator<<(double f); QTextStream &operator<<(const QString &s); - QTextStream &operator<<(const QLatin1String &s); + QTextStream &operator<<(QLatin1String s); QTextStream &operator<<(const QByteArray &array); QTextStream &operator<<(const char *c); QTextStream &operator<<(const void *ptr); |