aboutsummaryrefslogtreecommitdiff
path: root/qt/sqlite/basic/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'qt/sqlite/basic/driver.cxx')
-rw-r--r--qt/sqlite/basic/driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/sqlite/basic/driver.cxx b/qt/sqlite/basic/driver.cxx
index c0fb883..2cff023 100644
--- a/qt/sqlite/basic/driver.cxx
+++ b/qt/sqlite/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)