diff options
Diffstat (limited to 'odb/qt/smart-ptr/lazy-ptr.hxx')
-rw-r--r-- | odb/qt/smart-ptr/lazy-ptr.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/qt/smart-ptr/lazy-ptr.hxx b/odb/qt/smart-ptr/lazy-ptr.hxx index e964837..664eb7f 100644 --- a/odb/qt/smart-ptr/lazy-ptr.hxx +++ b/odb/qt/smart-ptr/lazy-ptr.hxx @@ -196,6 +196,13 @@ private: template <class X> friend class QLazySharedPointer; template <class X> friend class QLazyWeakPointer; + // For QLazyWeakPointer::toStrongRef(). + // + QLazySharedPointer (const QSharedPointer<T>& p, + const odb::lazy_ptr_impl<T>& i) + : p_ (p), i_ (i) {} + +private: mutable QSharedPointer<T> p_; mutable odb::lazy_ptr_impl<T> i_; }; |