diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-22 12:14:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-22 12:14:24 +0200 |
commit | 7175c721318723fdcbdda97045c0defa51571f17 (patch) | |
tree | 5eb7758265616ba09abe50c9c29cf68eb2c38e12 /common/relationship | |
parent | 919c93546cd45cd7c4cf9df18e1758be51d55e7b (diff) |
Use new pointer-based database operation overloads
Diffstat (limited to 'common/relationship')
-rw-r--r-- | common/relationship/driver.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
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 (); |