aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qmljstypereader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlcompiler/qmljstypereader.cpp')
-rw-r--r--src/qmlcompiler/qmljstypereader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmlcompiler/qmljstypereader.cpp b/src/qmlcompiler/qmljstypereader.cpp
index 1b7587c107..2ffa10d3f4 100644
--- a/src/qmlcompiler/qmljstypereader.cpp
+++ b/src/qmlcompiler/qmljstypereader.cpp
@@ -73,8 +73,8 @@ static QQmlJSScope::Ptr parseProgram(QQmlJS::AST::Program *program, const QStrin
result->setInternalName(name);
for (auto *statement = program->statements; statement; statement = statement->next) {
if (auto *function = cast<FunctionDeclaration *>(statement->statement)) {
- MetaMethod method(function->name.toString());
- method.setMethodType(MetaMethod::Method);
+ QQmlJSMetaMethod method(function->name.toString());
+ method.setMethodType(QQmlJSMetaMethod::Method);
for (auto *parameters = function->formals; parameters; parameters = parameters->next)
method.addParameter(parameters->element->bindingIdentifier.toString(), QString());
result->addMethod(method);