diff options
Diffstat (limited to 'src/qmldebug')
-rw-r--r-- | src/qmldebug/qqmlprofilerevent_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmldebug/qqmlprofilerevent_p.h b/src/qmldebug/qqmlprofilerevent_p.h index 93562302e9..49a0c9e347 100644 --- a/src/qmldebug/qqmlprofilerevent_p.h +++ b/src/qmldebug/qqmlprofilerevent_p.h @@ -97,7 +97,7 @@ struct QQmlProfilerEvent : public QQmlProfilerDefinitions { QQmlProfilerEvent(QQmlProfilerEvent &&other) { - memcpy(this, &other, sizeof(QQmlProfilerEvent)); + memcpy(static_cast<void *>(this), static_cast<const void *>(&other), sizeof(QQmlProfilerEvent)); other.m_dataType = Inline8Bit; // prevent dtor from deleting the pointer } @@ -117,7 +117,7 @@ struct QQmlProfilerEvent : public QQmlProfilerDefinitions { QQmlProfilerEvent &operator=(QQmlProfilerEvent &&other) { if (this != &other) { - memcpy(this, &other, sizeof(QQmlProfilerEvent)); + memcpy(static_cast<void *>(this), static_cast<const void *>(&other), sizeof(QQmlProfilerEvent)); other.m_dataType = Inline8Bit; } return *this; |