[pim/mimetreeparser] src/quick: Wrap pointers in QPointer

Claudio Cambra <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit cfc58aa036582f3bf9cc752f66c9733d67f1eda9 by Claudio Cambra.
Committed on 16/08/2026 at 16:51.
Pushed by clau-cambra into branch 'master'.

Wrap pointers in QPointer

M  +4    -3    src/quick/wheelinterceptor.h

https://invent.kde.org/pim/mimetreeparser/-/commit/cfc58aa036582f3bf9cc752f66c9733d67f1eda9

diff --git a/src/quick/wheelinterceptor.h b/src/quick/wheelinterceptor.h
index 39b0667..6b0650f 100644
--- a/src/quick/wheelinterceptor.h
+++ b/src/quick/wheelinterceptor.h
@@ -4,6 +4,7 @@
 #pragma once
 
 #include <QObject>
+#include <QPointer>
 #include <QQuickItem>
 
 class WheelInterceptor : public QObject
@@ -31,7 +32,7 @@ Q_SIGNALS:
 
 private:
     void updateScrollTarget();
-    QQuickItem *m_source = nullptr;
-    QQuickItem *m_target = nullptr;
-    QQuickItem *m_scrollTarget = nullptr;
+    QPointer<QQuickItem> m_source;
+    QPointer<QQuickItem> m_target;
+    QPointer<QQuickItem> m_scrollTarget;
 };
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.