From 8568cd25d943636e33ec00a935ad8a67d4876e14 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Aug 2011 09:14:11 +0200 Subject: Add default value for extra_flags argument --- odb/sqlite/connection-factory.cxx | 2 +- odb/sqlite/connection-factory.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/odb/sqlite/connection-factory.cxx b/odb/sqlite/connection-factory.cxx index 358fa0c..f200a17 100644 --- a/odb/sqlite/connection-factory.cxx +++ b/odb/sqlite/connection-factory.cxx @@ -42,7 +42,7 @@ namespace odb single_connection_factory:: create () { - return single_connection_ptr (new (shared) single_connection (*db_, 0)); + return single_connection_ptr (new (shared) single_connection (*db_)); } connection_ptr single_connection_factory:: diff --git a/odb/sqlite/connection-factory.hxx b/odb/sqlite/connection-factory.hxx index 04f91bf..94cd227 100644 --- a/odb/sqlite/connection-factory.hxx +++ b/odb/sqlite/connection-factory.hxx @@ -65,7 +65,7 @@ namespace odb class single_connection: public connection { public: - single_connection (database_type&, int extra_flags); + single_connection (database_type&, int extra_flags = 0); single_connection (database_type&, sqlite3*); private: @@ -179,7 +179,7 @@ namespace odb class pooled_connection: public connection { public: - pooled_connection (database_type&, int extra_flags); + pooled_connection (database_type&, int extra_flags = 0); pooled_connection (database_type&, sqlite3*); private: -- cgit v1.1