diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-07 08:07:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-07 08:07:00 +0200 |
commit | 056c73faed12bdd9e7800e3e464c107ca6e6ea84 (patch) | |
tree | 61ad1b536e721fa4578baa28bd1b15faaaf09d67 /qt/pgsql | |
parent | 7aa23d94dd5dd487aa9752aec5944d2d225cafa0 (diff) |
Use auto_ptr instead of raw pointer
Diffstat (limited to 'qt/pgsql')
-rw-r--r-- | qt/pgsql/basic/driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/pgsql/basic/driver.cxx b/qt/pgsql/basic/driver.cxx index ead2470..9e0fa4d 100644 --- a/qt/pgsql/basic/driver.cxx +++ b/qt/pgsql/basic/driver.cxx @@ -47,10 +47,10 @@ main (int argc, char* argv[]) // { transaction t (db->begin ()); - object* ol = db->load<object> (o.str); + auto_ptr<object> p (db->load<object> (o.str)); t.commit (); - assert (*ol == o); + assert (*p == o); } } catch (const odb::exception& e) |