From 7175c721318723fdcbdda97045c0defa51571f17 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 22 Nov 2010 12:14:24 +0200 Subject: Use new pointer-based database operation overloads --- common/relationship/driver.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'common/relationship') diff --git a/common/relationship/driver.cxx b/common/relationship/driver.cxx index 421b909..9266e2b 100644 --- a/common/relationship/driver.cxx +++ b/common/relationship/driver.cxx @@ -58,29 +58,29 @@ main (int argc, char* argv[]) // { transaction t (db->begin ()); - db->persist (*a.o1); - db->persist (*a.o2); + db->persist (a.o1); + db->persist (a.o2); #ifdef HAVE_TR1_MEMORY - db->persist (*a.o3); + db->persist (a.o3); - db->persist (*a.c.o3); + db->persist (a.c.o3); for (comp_vec::iterator i (a.cv.begin ()); i != a.cv.end (); ++i) if (i->o3) - db->persist (*i->o3); + db->persist (i->o3); #endif for (obj1_vec::iterator i (a.v1.begin ()); i != a.v1.end (); ++i) if (*i) - db->persist (**i); + db->persist (*i); for (obj1_set::iterator i (a.s1.begin ()); i != a.s1.end (); ++i) if (*i) - db->persist (**i); + db->persist (*i); for (obj1_map::iterator i (a.m1.begin ()); i != a.m1.end (); ++i) if (i->second) - db->persist (*i->second); + db->persist (i->second); db->persist (a); t.commit (); -- cgit v1.1