diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-09-22 13:05:20 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-09-22 13:05:20 +0000 |
| commit | c0f1452d7893c6f239063864c461d52577f7dc12 (patch) | |
| tree | 881e6af4f9197107469c95eff74839b2385db218 /src/QXmppClient.h | |
| parent | 7a1347c72b99f3e888b09da3cffba73d071cf776 (diff) | |
| download | qxmpp-c0f1452d7893c6f239063864c461d52577f7dc12.tar.gz | |
make the two templates uniform wrt T
Diffstat (limited to 'src/QXmppClient.h')
| -rw-r--r-- | src/QXmppClient.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/QXmppClient.h b/src/QXmppClient.h index 680e72a3..ad50338b 100644 --- a/src/QXmppClient.h +++ b/src/QXmppClient.h @@ -97,17 +97,17 @@ public: void addExtension(QXmppClientExtension *extension); QList<QXmppClientExtension*> extensions(); - /// Returns the extension than can be cast to type T, or 0 if there is + /// Returns the extension than can be cast to type T*, or 0 if there is /// no such extension. /// template<typename T> - T findExtension() + T* findExtension() { QList<QXmppClientExtension*> list = extensions(); for (int i = 0; i < list.size(); ++i) { - T extension = qobject_cast<T>(list.at(i)); - if (extension) + T* extension = qobject_cast<T*>(list.at(i)); + if(extension) return extension; } return 0; |
