From 056328d3cb3727415764048470ad9918200ae32f Mon Sep 17 00:00:00 2001 From: Louai Al-Khanji Date: Mon, 24 Aug 2015 10:29:56 +0300 Subject: [PATCH] Add #ifdef to avoid qdoc missing function warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1cba5543a519030a5b06bc80b6fd7410327c86c8 Reviewed-by: Topi Reiniƶ --- src/corelib/kernel/qpointer.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/corelib/kernel/qpointer.h b/src/corelib/kernel/qpointer.h index 72388f2bb7..52bd368301 100644 --- a/src/corelib/kernel/qpointer.h +++ b/src/corelib/kernel/qpointer.h @@ -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 &operator=(T* p)