aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4value_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4value_p.h')
-rw-r--r--src/qml/jsruntime/qv4value_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h
index 42e97b1d36..530c8eaf27 100644
--- a/src/qml/jsruntime/qv4value_p.h
+++ b/src/qml/jsruntime/qv4value_p.h
@@ -480,7 +480,7 @@ inline double Value::toInteger() const
template <size_t o>
struct HeapValue : Value {
- static Q_CONSTEXPR size_t offset = o;
+ static constexpr size_t offset = o;
HeapBasePtr base() {
HeapBasePtr base = reinterpret_cast<HeapBasePtr>(this) - (offset/sizeof(Heap::Base));
Q_ASSERT(base->inUse());
@@ -497,7 +497,7 @@ struct HeapValue : Value {
template <size_t o>
struct ValueArray {
- static Q_CONSTEXPR size_t offset = o;
+ static constexpr size_t offset = o;
uint size;
uint alloc;
Value values[1];