aboutsummaryrefslogtreecommitdiff
path: root/odb/simple-object-result.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/simple-object-result.hxx')
-rw-r--r--odb/simple-object-result.hxx13
1 files changed, 2 insertions, 11 deletions
diff --git a/odb/simple-object-result.hxx b/odb/simple-object-result.hxx
index 6f0868a..b0f3a9a 100644
--- a/odb/simple-object-result.hxx
+++ b/odb/simple-object-result.hxx
@@ -26,8 +26,6 @@ namespace odb
class object_result_impl: public result_impl
{
protected:
- typedef odb::database database_type;
-
// In result_impl, T is always non-const and the same as object_type.
//
typedef T object_type;
@@ -45,15 +43,9 @@ namespace odb
friend class object_result_iterator<const T, id_type, false>;
protected:
- object_result_impl (database_type& db)
- : begin_ (true), end_ (false), db_ (db), current_ ()
- {
- }
-
- database_type&
- database () const
+ object_result_impl (connection& conn)
+ : result_impl (conn), begin_ (true), end_ (false), current_ ()
{
- return db_;
}
// To make this work with all kinds of pointers (raw, std::auto_ptr,
@@ -153,7 +145,6 @@ namespace odb
load ();
private:
- database_type& db_;
pointer_type current_;
typename pointer_traits::guard guard_;
};