diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2012-05-23 03:49:57 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-25 21:49:21 +0200 |
commit | 09f20e75a4556e9c2f24db8606def88770e6f5df (patch) | |
tree | 79ab22178fe6168022aa5297ca69e954b8590ebc /src/corelib/io | |
parent | c31681ab623297ce767d78d68b04ccf551607ef1 (diff) |
Replace `const QLatin1String &` with `QLatin1String` where appropriate
Task-Id: QTBUG-24502
Change-Id: I360dee4dc68c165de0631ce4cf34e76fd873080e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
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); |