summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndy Shaw <qt-info@nokia.com>2009-06-03 11:11:41 +0200
committerAndy Shaw <qt-info@nokia.com>2009-06-03 11:11:41 +0200
commit716e2105dce4487baa32a4e11b69f1d394515a86 (patch)
tree3692cf404f949b329f861faaaad1a87bdc6a5f92 /src
parent10b1e68d07746fde5ec6d6d2fc3f46fb803a2462 (diff)
Add a note about what happens when passing 0 to qobject_cast in the doc
Reviewed-by: Kavindra Palaraja
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qobject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp
index 7e5f77949a..6583b85d5e 100644
--- a/src/corelib/kernel/qobject.cpp
+++ b/src/corelib/kernel/qobject.cpp
@@ -912,7 +912,8 @@ QObject::~QObject()
\relates QObject
Returns the given \a object cast to type T if the object is of type
- T (or of a subclass); otherwise returns 0.
+ T (or of a subclass); otherwise returns 0. If \a object is 0 then
+ it will also return 0.
The class T must inherit (directly or indirectly) QObject and be
declared with the \l Q_OBJECT macro.