diff --git a/src/plugins/qmldesigner/designercore/model/modelnode.cpp b/src/plugins/qmldesigner/designercore/model/modelnode.cpp index ee3c863ac0d..f196f5ca406 100644 --- a/src/plugins/qmldesigner/designercore/model/modelnode.cpp +++ b/src/plugins/qmldesigner/designercore/model/modelnode.cpp @@ -151,36 +151,14 @@ QString ModelNode::validId() static bool idIsQmlKeyWord(const QString& id) { - static const QSet keywords = { - "as", - "break", - "case", - "catch", - "continue", - "debugger", - "default", - "delete", - "do", - "else", - "finally", - "for", - "function", - "if", - "import", - "in", - "instanceof", - "new", - "return", - "switch", - "this", - "throw", - "try", - "typeof", - "var", - "void", - "while", - "with" - }; + static const QSet keywords = {"as", "break", "case", "catch", + "continue", "debugger", "default", "delete", + "do", "else", "finally", "for", + "function", "if", "import", "in", + "instanceof", "new", "print", "return", + "switch", "this", "throw", "try", + "typeof", "var", "void", "while", + "with"}; return keywords.contains(id); }