diff options
author | Andy Shaw <qt-info@nokia.com> | 2009-06-03 09:11:41 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-06-04 03:31:12 (GMT) |
commit | fdfccde44c621cf629dc9c17d0be2867b7cd1eaa (patch) | |
tree | 0c5a57578a841b0882efc55460a9cc0f44d5c63f | |
parent | 9f4912f46c8f1f62e5e55ccd948467e653244249 (diff) | |
download | Qt-fdfccde44c621cf629dc9c17d0be2867b7cd1eaa.zip Qt-fdfccde44c621cf629dc9c17d0be2867b7cd1eaa.tar.gz Qt-fdfccde44c621cf629dc9c17d0be2867b7cd1eaa.tar.bz2 |
Add a note about what happens when passing 0 to qobject_cast in the doc
Reviewed-by: Kavindra Palaraja
(cherry picked from commit 716e2105dce4487baa32a4e11b69f1d394515a86)
-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 94101f5..a9892a0 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. |