diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-29 13:22:59 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-31 12:06:36 +0000 |
commit | 9ee11d99fcfdb89adb7bf1829398caa235037b28 (patch) | |
tree | 49618271ac64ffa5456523b7a50cf660733f8455 /src/qml/compiler/qv4codegen.cpp | |
parent | 260a24800dcdf3fa6ad4a8d0abaa0c8b23aae511 (diff) |
Get rid of the specialized Moth::CompilationUnit
It didn't do anything special anymore, so fold the last
small bit of functionality back into the base class.
Change-Id: Ic8f62e645b2742aa91f13f63adaf321353962bc5
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r-- | src/qml/compiler/qv4codegen.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp index ea3f194852..b881454f40 100644 --- a/src/qml/compiler/qv4codegen.cpp +++ b/src/qml/compiler/qv4codegen.cpp @@ -53,7 +53,6 @@ #include <private/qv4compilercontext_p.h> #include <private/qv4compilercontrolflow_p.h> #include <private/qv4bytecodegenerator_p.h> -#include <private/qv4compilationunit_moth_p.h> #include <private/qv4compilerscanfunctions_p.h> #include <cmath> @@ -2730,7 +2729,7 @@ QList<QQmlJS::DiagnosticMessage> Codegen::errors() const QQmlRefPointer<CompiledData::CompilationUnit> Codegen::generateCompilationUnit(bool generateUnitData) { - Moth::CompilationUnit *compilationUnit = new Moth::CompilationUnit; + CompiledData::CompilationUnit *compilationUnit = new CompiledData::CompilationUnit; if (generateUnitData) compilationUnit->data = jsUnitGenerator->generateUnit(); @@ -2742,7 +2741,7 @@ QQmlRefPointer<CompiledData::CompilationUnit> Codegen::generateCompilationUnit(b QQmlRefPointer<CompiledData::CompilationUnit> Codegen::createUnitForLoading() { QQmlRefPointer<CompiledData::CompilationUnit> result; - result.adopt(new Moth::CompilationUnit); + result.adopt(new CompiledData::CompilationUnit); return result; } |