From e0dc0c1f005f36063e08c61de2754c4360103695 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 3 Jul 2012 16:35:39 +0200 Subject: Add template qualifiers that are missing according to Clang 3.1 --- odb/qt/smart-ptr/lazy-ptr.ixx | 16 +++++++++------- odb/qt/smart-ptr/lazy-ptr.txx | 6 +++--- 2 files changed, 12 insertions(+), 10 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 inline QLazySharedPointer QLazySharedPointer:: staticCast () const { - QLazySharedPointer c (p_.staticCast ()); + QLazySharedPointer c (p_.template staticCast ()); c.i_ = i_; return c; } @@ -139,7 +139,7 @@ template inline QLazySharedPointer QLazySharedPointer:: dynamicCast () const { - QLazySharedPointer c (p_.dynamicCast ()); + QLazySharedPointer c (p_.template dynamicCast ()); if (c) c.i_ = i_; @@ -152,7 +152,7 @@ template inline QLazySharedPointer QLazySharedPointer:: constCast () const { - QLazySharedPointer c (p_.constCast ()); + QLazySharedPointer c (p_.template constCast ()); c.i_ = i_; return c; } @@ -278,8 +278,9 @@ objectId () const { typedef typename odb::object_traits::object_type object_type; - return p_ ? - odb::object_traits::id (*p_) : i_.template object_id (); + return p_ + ? odb::object_traits::id (*p_) + : i_.template object_id (); } // @@ -516,8 +517,9 @@ objectId () const QSharedPointer sp (p_.toStrongRef ()); - return sp ? - odb::object_traits::id (*sp) :i_.template object_id (); + return sp + ? odb::object_traits::id (*sp) + : i_.template object_id (); } template diff --git a/odb/qt/smart-ptr/lazy-ptr.txx b/odb/qt/smart-ptr/lazy-ptr.txx index 25e3636..03b98bb 100644 --- a/odb/qt/smart-ptr/lazy-ptr.txx +++ b/odb/qt/smart-ptr/lazy-ptr.txx @@ -30,7 +30,7 @@ equal (const QLazySharedPointer& r) const typedef typename odb::object_traits::object_type object_type2; return i_.database () == r.i_.database () && - objectId () == r.objectId (); + objectId () == r.template objectId (); } // @@ -90,8 +90,8 @@ toStrongRef () const else { if (i_) - return QLazySharedPointer (*i_.database (), - i_.template object_id ()); + return QLazySharedPointer ( + *i_.database (), i_.template object_id ()); else return QLazySharedPointer (); } -- cgit v1.1