diff options
author | Andy Shaw <qt-info@nokia.com> | 2009-06-03 09:11:41 (GMT) |
---|---|---|
committer | Andy Shaw <qt-info@nokia.com> | 2009-06-03 09:11:41 (GMT) |
commit | 716e2105dce4487baa32a4e11b69f1d394515a86 (patch) | |
tree | 3692cf404f949b329f861faaaad1a87bdc6a5f92 /src/corelib/kernel | |
parent | 10b1e68d07746fde5ec6d6d2fc3f46fb803a2462 (diff) | |
download | Qt-716e2105dce4487baa32a4e11b69f1d394515a86.zip Qt-716e2105dce4487baa32a4e11b69f1d394515a86.tar.gz Qt-716e2105dce4487baa32a4e11b69f1d394515a86.tar.bz2 |
Add a note about what happens when passing 0 to qobject_cast in the doc
Reviewed-by: Kavindra Palaraja
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r-- | src/corelib/kernel/qobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp index 7e5f779..6583b85 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. |