forked from qt-creator/qt-creator
Highlighting: Fix compile before Qt5.15
Amends d4c4f8c007
.
Change-Id: I8f6c16b373500ab2fedbc4d43ccfb503565eccbd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user