diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-07-10 15:41:48 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-07-11 12:15:27 +0000 |
commit | 13e65f3a1f6d70c5ce1d84326dbb44fe03eba465 (patch) | |
tree | 68e7a621a755b16210fb3b1851977654d84976e8 /src/qml/jsruntime/qv4context_p.h | |
parent | e3a8aa0096daaa23920b75d3ef786d300562efb2 (diff) |
Support broken C++11 compilers
MSVC2013 doesn't like constexpr.
Change-Id: I01d2ec318812cb06872e55d993850cc9c528a826
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
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 f0596c6c8b..ff985ad9ee 100644 --- a/src/qml/jsruntime/qv4context_p.h +++ b/src/qml/jsruntime/qv4context_p.h @@ -91,7 +91,7 @@ struct CallData Value thisObject; Value args[1]; - static constexpr int HeaderSize() { return offsetof(CallData, args)/sizeof(QV4::Value); } + static Q_DECL_CONSTEXPR int HeaderSize() { return offsetof(CallData, args) / sizeof(QV4::Value); } }; Q_STATIC_ASSERT(std::is_standard_layout<CallData>::value); |