Commit c90df2b3 authored by Friedemann Kleint's avatar Friedemann Kleint

Reduce usage of QStringRef::toString() in settings reader.

Change-Id: Ie66432caa250eb3122739b38b5b0a02c66942cc3
Reviewed-by: default avatarTobias Hunger <>
parent c4babe8c
......@@ -316,7 +316,7 @@ ParseContext::Element ParseContext::element(const QStringRef &r) const
QVariant ParseContext::readSimpleValue(QXmlStreamReader &r, const QXmlStreamAttributes &attributes) const
// Simple value
const QString type = attributes.value(typeAttribute).toString();
const QStringRef type = attributes.value(typeAttribute);
const QString text = r.readElementText();
if (type == QLatin1String("QChar")) { // Workaround: QTBUG-12345
QTC_ASSERT(text.size() == 1, return QVariant());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment