forked from qt-creator/qt-creator
Fix: build failure for qmljscheck an qmljscodeformatter
Change-Id: Iba9686506d971f92e525361e93d648dc940fe2d2 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -631,10 +631,10 @@ void Check::endVisit(UiObjectInitializer *)
|
||||
m_propertyStack.pop();
|
||||
m_typeStack.pop();
|
||||
UiObjectDefinition *objectDenition = cast<UiObjectDefinition *>(parent());
|
||||
if (objectDenition && objectDenition->qualifiedTypeNameId->name == "Component")
|
||||
if (objectDenition && objectDenition->qualifiedTypeNameId->name == QLatin1String("Component"))
|
||||
m_idStack.pop();
|
||||
UiObjectBinding *objectBinding = cast<UiObjectBinding *>(parent());
|
||||
if (objectBinding && objectBinding->qualifiedTypeNameId->name == "Component")
|
||||
if (objectBinding && objectBinding->qualifiedTypeNameId->name == QLatin1String("Component"))
|
||||
m_idStack.pop();
|
||||
}
|
||||
|
||||
|
@@ -927,17 +927,17 @@ CodeFormatter::TokenKind CodeFormatter::extendedTokenKind(const QmlJS::Token &to
|
||||
QStringRef text = m_currentLine.midRef(token.begin(), token.length);
|
||||
|
||||
if (kind == Identifier) {
|
||||
if (text == "as")
|
||||
if (text == QLatin1String("as"))
|
||||
return As;
|
||||
if (text == "import")
|
||||
if (text == QLatin1String("import"))
|
||||
return Import;
|
||||
if (text == "signal")
|
||||
if (text == QLatin1String("signal"))
|
||||
return Signal;
|
||||
if (text == "property")
|
||||
if (text == QLatin1String("property"))
|
||||
return Property;
|
||||
if (text == "on")
|
||||
if (text == QLatin1String("on"))
|
||||
return On;
|
||||
if (text == "list")
|
||||
if (text == QLatin1String("list"))
|
||||
return List;
|
||||
} else if (kind == Keyword) {
|
||||
const char char1 = text.at(0).toLatin1();
|
||||
@@ -998,11 +998,11 @@ CodeFormatter::TokenKind CodeFormatter::extendedTokenKind(const QmlJS::Token &to
|
||||
return Break;
|
||||
}
|
||||
} else if (kind == Delimiter) {
|
||||
if (text == "?")
|
||||
if (text == QLatin1String("?"))
|
||||
return Question;
|
||||
else if (text == "++")
|
||||
else if (text == QLatin1String("++"))
|
||||
return PlusPlus;
|
||||
else if (text == "--")
|
||||
else if (text == QLatin1String("--"))
|
||||
return MinusMinus;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user