diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-09-11 10:27:32 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-09-11 21:33:16 +0000 |
commit | edb2cdc06ac5ab808429c654c55de87c8c4bf450 (patch) | |
tree | 777af68be9addded29bd911aaba86a9616f83e01 /src/qml/jsruntime/qv4value_p.h | |
parent | 3b444a07f3d03402a5ec1ac0da6528b1f7f4e95a (diff) |
Micro optimization when initializing the Cpp frame
Change-Id: I07db2df7eec2bdbeb84bd576d9e4f7912f79fc78
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4value_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4value_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h index e4be6b99dd..305b8c6bab 100644 --- a/src/qml/jsruntime/qv4value_p.h +++ b/src/qml/jsruntime/qv4value_p.h @@ -710,8 +710,8 @@ inline unsigned int Primitive::toUInt32(double d) } struct Encode { - static ReturnedValue undefined() { - return Primitive::undefinedValue().rawValue(); + static constexpr ReturnedValue undefined() { + return 0; } static ReturnedValue null() { return Primitive::nullValue().rawValue(); |