diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-03 16:35:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-03 16:35:39 +0200 |
commit | e0dc0c1f005f36063e08c61de2754c4360103695 (patch) | |
tree | 6a8669f81bab94b5a7bb65b561ba8e2a0c6e97f6 /odb/qt/smart-ptr/lazy-ptr.ixx | |
parent | 0c8561962a9651ad04715d944b849410a50fa56f (diff) |
Add template qualifiers that are missing according to Clang 3.1
Diffstat (limited to 'odb/qt/smart-ptr/lazy-ptr.ixx')
-rw-r--r-- | odb/qt/smart-ptr/lazy-ptr.ixx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/odb/qt/smart-ptr/lazy-ptr.ixx b/odb/qt/smart-ptr/lazy-ptr.ixx index 9241f74..5fd3b2b 100644 --- a/odb/qt/smart-ptr/lazy-ptr.ixx +++ b/odb/qt/smart-ptr/lazy-ptr.ixx @@ -129,7 +129,7 @@ template <class X> inline QLazySharedPointer<X> QLazySharedPointer<T>:: staticCast () const { - QLazySharedPointer c (p_.staticCast<X> ()); + QLazySharedPointer c (p_.template staticCast<X> ()); c.i_ = i_; return c; } @@ -139,7 +139,7 @@ template <class X> inline QLazySharedPointer<X> QLazySharedPointer<T>:: dynamicCast () const { - QLazySharedPointer<X> c (p_.dynamicCast<X> ()); + QLazySharedPointer<X> c (p_.template dynamicCast<X> ()); if (c) c.i_ = i_; @@ -152,7 +152,7 @@ template <class X> inline QLazySharedPointer<X> QLazySharedPointer<T>:: constCast () const { - QLazySharedPointer<X> c (p_.constCast<X> ()); + QLazySharedPointer<X> c (p_.template constCast<X> ()); c.i_ = i_; return c; } @@ -278,8 +278,9 @@ objectId () const { typedef typename odb::object_traits<T>::object_type object_type; - return p_ ? - odb::object_traits<object_type>::id (*p_) : i_.template object_id<O> (); + return p_ + ? odb::object_traits<object_type>::id (*p_) + : i_.template object_id<O> (); } // @@ -516,8 +517,9 @@ objectId () const QSharedPointer<T> sp (p_.toStrongRef ()); - return sp ? - odb::object_traits<object_type>::id (*sp) :i_.template object_id<O> (); + return sp + ? odb::object_traits<object_type>::id (*sp) + : i_.template object_id<O> (); } template <class T> |