Highlighting: Fix compile before Qt5.15

Amends d4c4f8c007.

Change-Id: I8f6c16b373500ab2fedbc4d43ccfb503565eccbd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2021-03-17 13:46:36 +01:00
parent 27f299d9b5
commit 73ff6996b2

View File

@@ -17,7 +17,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;
}
}