diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-02-07 09:46:02 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-22 10:11:06 +0100 |
commit | b8bb8d752639d0907922bdd4e4a944534a0a6770 (patch) | |
tree | def6913e3ffbf43176b0426ae31f8351c2b98579 /src/qml/jsruntime/qv4value.cpp | |
parent | 109889428edc5e4cf25c9fdd11a5e006e8a08630 (diff) |
Simplify some runtime code
Simpler code and delivers the same performance.
Change-Id: Ifd0398f0c123f4c21998f518574cf74cd7cf7e09
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4value.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4value.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4value.cpp b/src/qml/jsruntime/qv4value.cpp index c91084caee..a610f0b73a 100644 --- a/src/qml/jsruntime/qv4value.cpp +++ b/src/qml/jsruntime/qv4value.cpp @@ -98,6 +98,7 @@ double Value::toNumberImpl() const case QV4::Value::Null_Type: case QV4::Value::Boolean_Type: case QV4::Value::Integer_Type: + return int_32; default: // double Q_UNREACHABLE(); } |