diff options
| -rw-r--r-- | src/qmlcompiler/qdeferredpointer_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qdeferredpointer_p.h b/src/qmlcompiler/qdeferredpointer_p.h index d0b1f35c1f..88daed8b4e 100644 --- a/src/qmlcompiler/qdeferredpointer_p.h +++ b/src/qmlcompiler/qdeferredpointer_p.h @@ -85,7 +85,7 @@ public: explicit operator bool() const noexcept { return !isNull(); } bool operator !() const noexcept { return isNull(); } - [[nodiscard]] T *data() const { return QSharedPointer<T>(*this).data(); } + [[nodiscard]] T *data() const { lazyLoad(); return m_data.data(); } [[nodiscard]] T *get() const { return data(); } friend size_t qHash(const QDeferredSharedPointer &ptr, size_t seed = 0) |
