diff options
Diffstat (limited to 'odb/qt/smart-ptr/lazy-ptr.txx')
-rw-r--r-- | odb/qt/smart-ptr/lazy-ptr.txx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/odb/qt/smart-ptr/lazy-ptr.txx b/odb/qt/smart-ptr/lazy-ptr.txx index 9e8be80..2497811 100644 --- a/odb/qt/smart-ptr/lazy-ptr.txx +++ b/odb/qt/smart-ptr/lazy-ptr.txx @@ -73,26 +73,3 @@ equal (const QLazySharedPointer<X>& r) const return r.equal (sp); } - -template <class T> -QLazySharedPointer<T> QLazyWeakPointer<T>:: -toStrongRef () const -{ - QSharedPointer<T> sp (p_.toStrongRef ()); - - if (sp) - { - if (database_type* db = i_.database ()) - return QLazySharedPointer<T> (*db, sp); - else - return QLazySharedPointer<T> (sp); - } - else - { - if (i_) - return QLazySharedPointer<T> ( - *i_.database (), i_.template object_id<T> ()); - else - return QLazySharedPointer<T> (); - } -} |