Replace `const QCharRef &` with `QCharRef` where appropriate
authorKonstantin Ritt <ritt.ks@gmail.com>
Wed, 23 May 2012 02:02:13 +0000 (05:02 +0300)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 May 2012 19:49:27 +0000 (21:49 +0200)
in order of consistency with QChar

Change-Id: I8a7cf8960eb64ef177113d4569f1c49ae31c828e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qstringbuilder.h

index 2a083c9..1f13d0d 100644 (file)
@@ -217,8 +217,8 @@ template <> struct QConcatenable<QCharRef> : private QAbstractConcatenable
     typedef QCharRef type;
     typedef QString ConvertTo;
     enum { ExactSize = true };
-    static int size(const QCharRef &) { return 1; }
-    static inline void appendTo(const QCharRef &c, QChar *&out)
+    static int size(QCharRef) { return 1; }
+    static inline void appendTo(QCharRef c, QChar *&out)
     { *out++ = QChar(c); }
 };