aboutsummaryrefslogtreecommitdiff
path: root/brep/shared-database.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'brep/shared-database.cxx')
-rw-r--r--brep/shared-database.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/brep/shared-database.cxx b/brep/shared-database.cxx
index fb952d8..fc17659 100644
--- a/brep/shared-database.cxx
+++ b/brep/shared-database.cxx
@@ -10,14 +10,14 @@
#include <odb/pgsql/database.hxx>
using namespace std;
-using namespace odb;
namespace brep
{
- shared_ptr<database>
- shared_database (const string& host, unsigned int port)
+ shared_ptr<odb::database>
+ shared_database (const string& h, unsigned int p)
{
- static weak_ptr<pgsql::database> db;
+ using odb::pgsql::database;
+ static weak_ptr<database> db;
// In C++11, function-static variable initialization is
// guaranteed to be thread-safe, thought this doesn't