Add #ifdef to avoid qdoc missing function warning
authorLouai Al-Khanji <louai.al-khanji@theqtcompany.com>
Mon, 24 Aug 2015 07:29:56 +0000 (10:29 +0300)
committerLouai Al-Khanji <louai.al-khanji@theqtcompany.com>
Tue, 25 Aug 2015 06:01:00 +0000 (06:01 +0000)
Change-Id: I1cba5543a519030a5b06bc80b6fd7410327c86c8
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
src/corelib/kernel/qpointer.h

index 72388f2bb7178b1397bb8290e2e0022c53e82841..52bd3683016bfd7e1767814cc083c20aa865d3ef 100644 (file)
@@ -66,6 +66,11 @@ public:
     // compiler-generated copy/move ctor/assignment operators are fine!
     // compiler-generated dtor is fine!
 
+#ifdef Q_QDOC
+    // Stop qdoc from complaining about missing function
+    ~QPointer();
+#endif
+
     inline void swap(QPointer &other) { wp.swap(other.wp); }
 
     inline QPointer<T> &operator=(T* p)