From a7e766e1aa77fff846d8426658befd9a01fe2861 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 11 Aug 2015 15:34:12 +0200 Subject: Share DB object between modules --- brep/view.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'brep/view.cxx') diff --git a/brep/view.cxx b/brep/view.cxx index 08e2592..2f3bd17 100644 --- a/brep/view.cxx +++ b/brep/view.cxx @@ -11,12 +11,11 @@ #include #include -#include - #include #include #include +#include using namespace std; using namespace odb::core; @@ -31,11 +30,7 @@ namespace brep cli::unknown_mode::fail, cli::unknown_mode::fail); - db_ = make_shared ("", - "", - "brep", - options_->db_host (), - options_->db_port ()); + db_ = shared_database (options_->db_host (), options_->db_port ()); } void view:: -- cgit v1.1