From bc6aeaa834d666221171d302d4f101ce65608898 Mon Sep 17 00:00:00 2001 From: neodarz Date: Mon, 9 Sep 2019 17:17:44 +0200 Subject: Refactoring some code to be more readable --- db/mongo_access.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'db/mongo_access.cpp') diff --git a/db/mongo_access.cpp b/db/mongo_access.cpp index 56936f3..a19488e 100644 --- a/db/mongo_access.cpp +++ b/db/mongo_access.cpp @@ -1,9 +1,9 @@ #include "mongo_access.h" -mongo_access::mongo_access(void) {}; -mongo_access::~mongo_access(void) {}; +UmosapiService::mongo_access::mongo_access(void) {}; +UmosapiService::mongo_access::~mongo_access(void) {}; -void mongo_access::configure(mongocxx::uri uri) { +void UmosapiService::mongo_access::configure(mongocxx::uri uri) { class noop_logger : public mongocxx::logger { public: virtual void operator()(mongocxx::log_level, @@ -11,6 +11,6 @@ void mongo_access::configure(mongocxx::uri uri) { bsoncxx::stdx::string_view) noexcept {} }; - _pool = bsoncxx::stdx::make_unique(std::move(uri)); - _instance = bsoncxx::stdx::make_unique(bsoncxx::stdx::make_unique()); + UmosapiService::mongo_access::_pool = bsoncxx::stdx::make_unique(std::move(uri)); + UmosapiService::mongo_access::_instance = bsoncxx::stdx::make_unique(bsoncxx::stdx::make_unique()); } -- cgit v1.2.1