From db96446ece67ba1f495811e29838e8c7bc7984ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gehring?= Date: Wed, 29 Jul 2015 00:04:02 -0700 Subject: CommonAPI-D-Bus 3.1.3 --- src/CommonAPI/DBus/DBusFactory.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/CommonAPI/DBus/DBusFactory.cpp') diff --git a/src/CommonAPI/DBus/DBusFactory.cpp b/src/CommonAPI/DBus/DBusFactory.cpp index f75619c..afe5ad7 100644 --- a/src/CommonAPI/DBus/DBusFactory.cpp +++ b/src/CommonAPI/DBus/DBusFactory.cpp @@ -27,8 +27,7 @@ Factory::get() { return theFactory; } -Factory::Factory() - : dBusBusType_(DBusAddressTranslator::get()->getDBusBusType()) { +Factory::Factory() { } Factory::~Factory() { @@ -224,8 +223,9 @@ Factory::getConnection(const ConnectionId_t &_connectionId) { } // No connection found, lets create and initialize one + DBusType_t dbusType = DBusAddressTranslator::get()->getDBusBusType(_connectionId); std::shared_ptr itsConnection - = std::make_shared(dBusBusType_); + = std::make_shared(dbusType); connections_.insert({ _connectionId, itsConnection }); itsConnection->connect(true); @@ -244,7 +244,7 @@ Factory::getConnection(std::shared_ptr _context) { // No connection found, lets create and initialize one std::shared_ptr itsConnection - = std::make_shared(dBusBusType_); + = std::make_shared(DBusType_t::SESSION); contextConnections_.insert({ _context.get(), itsConnection } ); itsConnection->connect(false); -- cgit v1.2.1