diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-30 09:14:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-30 09:14:11 +0200 |
commit | 8568cd25d943636e33ec00a935ad8a67d4876e14 (patch) | |
tree | a15e5463a33e89ea224dc1494f71d604b2770aaf | |
parent | 282cdfe67cc9f9763868abf9aeb0d97e52c06d63 (diff) |
Add default value for extra_flags argument
-rw-r--r-- | odb/sqlite/connection-factory.cxx | 2 | ||||
-rw-r--r-- | 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: |