diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2016-01-05 15:30:34 +0000 |
---|---|---|
committer | Sérgio Martins <iamsergio@gmail.com> | 2016-01-05 16:36:02 +0000 |
commit | 49f9797d2a2aab245a9866bc4563812a6e8c02e1 (patch) | |
tree | 2fa00b2e4f6a4188abec62c32ff8cf1d8c0a0400 /src/qml/jsruntime/qv4engine.cpp | |
parent | 8b9ab5e06e589cc7a252f7af9e945c38f8d25ada (diff) |
Fix a couple of container detachments
Change-Id: I0def20d858de7721771702907b7a431b5fb90a1f
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp index e31d9b1481..d74575da03 100644 --- a/src/qml/jsruntime/qv4engine.cpp +++ b/src/qml/jsruntime/qv4engine.cpp @@ -1102,7 +1102,7 @@ QQmlError ExecutionEngine::catchExceptionAsQmlError() QV4::ScopedValue exception(scope, catchException(&trace)); QQmlError error; if (!trace.isEmpty()) { - QV4::StackFrame frame = trace.first(); + QV4::StackFrame frame = trace.constFirst(); error.setUrl(QUrl(frame.source)); error.setLine(frame.line); error.setColumn(frame.column); |