[telepathy-qt4/master] shared-ptr: Changed SharedPtr(T*) to not be a templated constructor.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Mon Apr 13 09:33:15 PDT 2009


---
 TelepathyQt4/shared-ptr.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt4/shared-ptr.h b/TelepathyQt4/shared-ptr.h
index bc37aa0..2809843 100644
--- a/TelepathyQt4/shared-ptr.h
+++ b/TelepathyQt4/shared-ptr.h
@@ -67,8 +67,7 @@ class SharedPtr
 {
 public:
     inline SharedPtr() : d(0) { }
-    template <class Y>
-    explicit inline SharedPtr(Y *d) : d(dynamic_cast<T*>(d)) { if (d) { d->ref(); } }
+    explicit inline SharedPtr(T *d) : d(d) { if (d) { d->ref(); } }
     inline SharedPtr(const SharedPtr<T> &o) : d(o.d) { if (d) { d->ref(); } }
     explicit inline SharedPtr(const WeakPtr<T> &o)
     {
-- 
1.5.6.5




More information about the telepathy-commits mailing list