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:
@@ -50,7 +50,6 @@
|
||||
#include <cplusplus/Overview.h>
|
||||
#include <cplusplus/SimpleLexer.h>
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/porting.h>
|
||||
#include <utils/textutils.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -321,8 +320,8 @@ bool isInCommentOrString(const TextEditor::AssistInterface *interface,
|
||||
&& tokens.at(1).kind() == T_IDENTIFIER) {
|
||||
const QString &line = tc.block().text();
|
||||
const Token &idToken = tokens.at(1);
|
||||
QStringView identifier = Utils::midView(line, idToken.utf16charsBegin(),
|
||||
idToken.utf16chars());
|
||||
QStringView identifier = QStringView(line).mid(idToken.utf16charsBegin(),
|
||||
idToken.utf16chars());
|
||||
if (identifier == QLatin1String("include")
|
||||
|| identifier == QLatin1String("include_next")
|
||||
|| (features.objCEnabled && identifier == QLatin1String("import"))) {
|
||||
|
||||
Reference in New Issue
Block a user