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/xml/qxmlutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/xml/qxmlutils.cpp') diff --git a/src/corelib/xml/qxmlutils.cpp b/src/corelib/xml/qxmlutils.cpp index 954846a573..7ec208816c 100644 --- a/src/corelib/xml/qxmlutils.cpp +++ b/src/corelib/xml/qxmlutils.cpp @@ -379,7 +379,7 @@ bool QXmlUtils::isNCName(const QStringRef &ncName) const int len = ncName.size(); for(int i = 0; i < len; ++i) { - const QChar &at = ncName.at(i); + const QChar at = ncName.at(i); if(!QXmlUtils::isNameChar(at) || at == QLatin1Char(':')) return false; } -- cgit v1.2.3