diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2011-10-18 16:44:54 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-21 21:05:25 +0100 |
commit | 432a75604819d9ed4143036c7cafa72106c768e0 (patch) | |
tree | 54ed7c217b3b4e22c7066e667f47534d4e025c34 /src/corelib/xml | |
parent | c8160ea1dbb5c20856c9c385053f8e5611a9f4d6 (diff) |
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 <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/xml')
-rw-r--r-- | src/corelib/xml/qxmlutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |