From 432a75604819d9ed4143036c7cafa72106c768e0 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Tue, 18 Oct 2011 16:44:54 +0200 Subject: replace 'const QChar &' with 'QChar ' where appropriate as QChar is actually an ushort and there is no point in taking its address. Merge-request: 69 Change-Id: Idcc9d621e5627514ade006aa12a789a88929d48b Reviewed-by: Olivier Goffart --- src/corelib/tools/qlocale_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/corelib/tools/qlocale_p.h') diff --git a/src/corelib/tools/qlocale_p.h b/src/corelib/tools/qlocale_p.h index 7653f4d93d..c6902ca206 100644 --- a/src/corelib/tools/qlocale_p.h +++ b/src/corelib/tools/qlocale_p.h @@ -228,7 +228,7 @@ public: bool numberToCLocale(const QString &num, GroupSeparatorMode group_sep_mode, CharBuff *result) const; - inline char digitToCLocale(const QChar &c) const; + inline char digitToCLocale(QChar c) const; static void updateSystemPrivate(); @@ -282,7 +282,7 @@ public: }; -inline char QLocalePrivate::digitToCLocale(const QChar &in) const +inline char QLocalePrivate::digitToCLocale(QChar in) const { const QChar _zero = zero(); const QChar _group = group(); -- cgit v1.2.3