diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2018-09-18 10:33:35 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2018-10-07 12:42:40 +0000 |
commit | 2bcfb322df727abf96022830077d4ae8b30f644d (patch) | |
tree | 08a53f19407f5b58694c41d217d4ab959986d4f0 /src/qml/compiler/qv4codegen_p.h | |
parent | 28521e3585c0290ff1ef5cd21fa81d308ddf3f44 (diff) |
Make Codegen::Reference movable
This removes the call to Reference::operator= and allows the constructor
and assignment to be inlined.
Change-Id: I173ae47127cc5c939300c1178c4c8637882f1c49
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen_p.h')
-rw-r--r-- | src/qml/compiler/qv4codegen_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h index afcc1b67ad..c25e386131 100644 --- a/src/qml/compiler/qv4codegen_p.h +++ b/src/qml/compiler/qv4codegen_p.h @@ -194,9 +194,10 @@ public: Reference(Codegen *cg, Type type = Invalid) : type(type), codegen(cg) {} Reference() {} - Reference(const Reference &other); - - Reference &operator =(const Reference &other); + Reference(const Reference &) = default; + Reference(Reference &&) = default; + Reference &operator =(const Reference &) = default; + Reference &operator =(Reference &&) = default; bool operator==(const Reference &other) const; bool operator!=(const Reference &other) const |