From 056c73faed12bdd9e7800e3e464c107ca6e6ea84 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Feb 2013 08:07:00 +0200 Subject: Use auto_ptr instead of raw pointer --- qt/mysql/basic/driver.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt/mysql') diff --git a/qt/mysql/basic/driver.cxx b/qt/mysql/basic/driver.cxx index f0cc876..68d998a 100644 --- a/qt/mysql/basic/driver.cxx +++ b/qt/mysql/basic/driver.cxx @@ -47,10 +47,10 @@ main (int argc, char* argv[]) // { transaction t (db->begin ()); - object* ol = db->load (o.str); + auto_ptr p (db->load (o.str)); t.commit (); - assert (*ol == o); + assert (*p == o); } } catch (const odb::exception& e) -- cgit v1.1