forked from qt-creator/qt-creator
QmlJSEditor: Another QT_NO_CAST_FROM_ASCII fix.
Change-Id: I6ab48750a74451df525115989fb694e3714bcd61 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
696d55b0e0
commit
b8674062eb
@@ -269,7 +269,7 @@ private:
|
||||
AST::IdentifierExpression *lhsIdent = AST::cast<AST::IdentifierExpression *>(binExp->left);
|
||||
AST::ObjectLiteral *rhsObjLit = AST::cast<AST::ObjectLiteral *>(binExp->right);
|
||||
|
||||
if (lhsIdent && rhsObjLit && (lhsIdent->name == "testcase")
|
||||
if (lhsIdent && rhsObjLit && (lhsIdent->name == QLatin1String("testcase"))
|
||||
&& (binExp->op == QSOperator::Assign)) {
|
||||
QModelIndex index = m_model->enterTestCase(rhsObjLit);
|
||||
m_nodeToIndex.insert(rhsObjLit, index);
|
||||
|
||||
Reference in New Issue
Block a user