diff options
Diffstat (limited to 'common/callback/driver.cxx')
-rw-r--r-- | common/callback/driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/callback/driver.cxx b/common/callback/driver.cxx index b85729c..8cc918d 100644 --- a/common/callback/driver.cxx +++ b/common/callback/driver.cxx @@ -115,7 +115,7 @@ main (int argc, char* argv[]) o1->data++; o2->data++; db->update (o1.get ()); - db->update (static_cast<object const&> (*o2)); + db->update (static_cast<const object&> (*o2)); t.commit (); } cout << "***" << endl; @@ -127,7 +127,7 @@ main (int argc, char* argv[]) transaction t (db->begin ()); auto_ptr<object> o1 (db->load<object> (1)); auto_ptr<object> o2 (db->load<object> (2)); - db->erase (static_cast<object const*> (o1.get ())); + db->erase (static_cast<const object*> (o1.get ())); db->erase (*o2); t.commit (); } |