KSyntaxHighlighter: Fix compile

Amends 6b9cad8b05.

Change-Id: I9f254e254edfadeb4fa1e41c20514463477d7184
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2020-09-08 09:57:54 +02:00
parent 7aa0b1ea6b
commit ae7aa56733

View File

@@ -34,7 +34,7 @@ namespace Xml
/** Parse a xs:boolean attribute. */
inline bool attrToBool(const QStringView &str)
{
return str == QLatin1String("1") || str.compare(QLatin1String("true"), Qt::CaseInsensitive) == 0;
return str == QLatin1String("1") || str.compare(QString("true"), Qt::CaseInsensitive) == 0;
}
}