diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-07 13:51:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-07 13:51:23 +0200 |
commit | 2a6f06ae44a80a5ebdc1b6188b11634fbb0e8741 (patch) | |
tree | ec632db851d165defead84dc65ca537e850d64d2 /common/callback | |
parent | 9c304207722ff9e2794ba25bb496858f089e4a2a (diff) |
Fix to use traditional const style
Diffstat (limited to 'common/callback')
-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 (); } |