forked from qt-creator/qt-creator
Utils: More porting.h related changes
Change-Id: I528a6950dfa6e09eb7f7ada265c8c41dba816bfd Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -64,8 +64,6 @@
|
||||
#include <qmljs/qmljslineinfo.h>
|
||||
#include <qmljs/qmljsscanner.h>
|
||||
|
||||
#include <utils/porting.h>
|
||||
|
||||
using namespace QmlJS;
|
||||
|
||||
/*
|
||||
@@ -281,7 +279,7 @@ Token LineInfo::lastToken() const
|
||||
|
||||
QStringView LineInfo::tokenText(const Token &token) const
|
||||
{
|
||||
return Utils::midView(yyLinizerState.line, token.offset, token.length);
|
||||
return QStringView(yyLinizerState.line).mid(token.offset, token.length);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user