diff options
-rw-r--r-- | tools/qmllint/scopetree.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/qmllint/scopetree.h b/tools/qmllint/scopetree.h index d6f0a2c171..b7619c4352 100644 --- a/tools/qmllint/scopetree.h +++ b/tools/qmllint/scopetree.h @@ -132,11 +132,7 @@ public: ScopeType scopeType() const { return m_scopeType; } - void addMethods(const QHash<QString, MetaMethod> &methods) - { - for (auto it = methods.begin(), end = methods.end(); it != end; ++it) - m_methods.insert(it.key(), it.value()); - } + void addMethods(const QHash<QString, MetaMethod> &methods) { m_methods.insert(methods); } void addMethod(const MetaMethod &method) { m_methods.insert(method.methodName(), method); } QHash<QString, MetaMethod> methods() const { return m_methods; } |