aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-12-10 16:56:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-12-10 16:56:27 +0200
commitf995dcc30766afe58d212131efb6478c2dbfd7b9 (patch)
treeb75206611cd9a76750160d8c96ed85fb6456cbfc
parentd5a8a14abbbdb41c753502ea25e2c327ada106f3 (diff)
Fix incorrect return statement
-rw-r--r--odb/lazy-ptr.ixx4
-rw-r--r--odb/tr1/lazy-ptr.ixx4
2 files changed, 4 insertions, 4 deletions
diff --git a/odb/lazy-ptr.ixx b/odb/lazy-ptr.ixx
index 3318633..6f56e1b 100644
--- a/odb/lazy-ptr.ixx
+++ b/odb/lazy-ptr.ixx
@@ -1490,7 +1490,7 @@ namespace odb
{
p_ = r;
i_.reset ();
- return this;
+ return *this;
}
template <class T>
@@ -1500,7 +1500,7 @@ namespace odb
{
p_ = r;
i_.reset ();
- return this;
+ return *this;
}
template <class T>
diff --git a/odb/tr1/lazy-ptr.ixx b/odb/tr1/lazy-ptr.ixx
index ad2d659..1fc2eb0 100644
--- a/odb/tr1/lazy-ptr.ixx
+++ b/odb/tr1/lazy-ptr.ixx
@@ -472,7 +472,7 @@ namespace odb
{
p_ = r;
i_.reset ();
- return this;
+ return *this;
}
template <class T>
@@ -482,7 +482,7 @@ namespace odb
{
p_ = r;
i_.reset ();
- return this;
+ return *this;
}
template <class T>