diff options
author | Oleg Shparber <trollixx@gmail.com> | 2014-12-26 23:13:54 -0800 |
---|---|---|
committer | Oleg Shparber <trollixx@gmail.com> | 2014-12-27 09:40:45 +0100 |
commit | 7dd5895854087c006d9ec58ada6899df6020b3c6 (patch) | |
tree | 37b7122b9cf9a9922116edbf35d142e44f9f4c65 /src/qml/jsruntime/qv4context_p.h | |
parent | f8beab1d7390095114e1d5f02097751dd1b07345 (diff) |
Make QV4::CallData::argument() method constant
Change-Id: Id2640f6a0c08069764baeac606a25fdb53b23419
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4context_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h index 7876c3ae16..ea2d266146 100644 --- a/src/qml/jsruntime/qv4context_p.h +++ b/src/qml/jsruntime/qv4context_p.h @@ -59,7 +59,7 @@ struct CallData #if Q_BYTE_ORDER == Q_LITTLE_ENDIAN uint tag; #endif - inline ReturnedValue argument(int i) { + inline ReturnedValue argument(int i) const { return i < argc ? args[i].asReturnedValue() : Primitive::undefinedValue().asReturnedValue(); } |