forked from qt-creator/qt-creator
Reduce usage of QStringRef::toString() in settings reader.
Change-Id: Ie66432caa250eb3122739b38b5b0a02c66942cc3 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -316,7 +316,7 @@ ParseContext::Element ParseContext::element(const QStringRef &r) const
|
|||||||
QVariant ParseContext::readSimpleValue(QXmlStreamReader &r, const QXmlStreamAttributes &attributes) const
|
QVariant ParseContext::readSimpleValue(QXmlStreamReader &r, const QXmlStreamAttributes &attributes) const
|
||||||
{
|
{
|
||||||
// Simple value
|
// Simple value
|
||||||
const QString type = attributes.value(typeAttribute).toString();
|
const QStringRef type = attributes.value(typeAttribute);
|
||||||
const QString text = r.readElementText();
|
const QString text = r.readElementText();
|
||||||
if (type == QLatin1String("QChar")) { // Workaround: QTBUG-12345
|
if (type == QLatin1String("QChar")) { // Workaround: QTBUG-12345
|
||||||
QTC_ASSERT(text.size() == 1, return QVariant());
|
QTC_ASSERT(text.size() == 1, return QVariant());
|
||||||
|
Reference in New Issue
Block a user