From 7e9fa5ad9c1786d8be5a422f94a44b2cd836aca6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C4=99drzej=20Nowacki?= Date: Tue, 24 Apr 2012 10:35:45 +0200 Subject: [PATCH] Use macro for QByteArrayData initialization. Change-Id: I6fc09c69ddd7eba588950cbdaeff4002fcc00ef5 Reviewed-by: Kent Hansen --- src/qml/qml/ftw/qfastmetabuilder_p.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/qml/qml/ftw/qfastmetabuilder_p.h b/src/qml/qml/ftw/qfastmetabuilder_p.h index 16f7b6e..aebafc8 100644 --- a/src/qml/qml/ftw/qfastmetabuilder_p.h +++ b/src/qml/qml/ftw/qfastmetabuilder_p.h @@ -222,7 +222,7 @@ void QFastMetaBuilder::StringRef::loadByteArrayData() int offsetofCstrings = _b->m_stringCount * sizeof(QByteArrayData); qptrdiff offset = offsetofCstrings + _o - _i * sizeof(QByteArrayData); - const QByteArrayData bad = { Q_REFCOUNT_INITIALIZE_STATIC, _l, 0, 0, offset }; + const QByteArrayData bad = Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(_l, offset); memcpy(&_b->m_stringData[_i], &bad, sizeof(QByteArrayData)); ++_b->m_stringCountLoaded; -- 1.7.2.5