forked from Kistler-Group/sdbus-cpp
Switch to fully supported C++17
This commit is contained in:
committed by
Stanislav Angelovič
parent
d591b69f92
commit
975f1bf07f
@@ -35,7 +35,7 @@
|
||||
#include <poll.h>
|
||||
#include <sys/eventfd.h>
|
||||
|
||||
namespace sdbus { namespace internal {
|
||||
namespace sdbus::internal {
|
||||
|
||||
Connection::Connection(std::unique_ptr<ISdBus>&& interface, const BusFactory& busFactory)
|
||||
: iface_(std::move(interface))
|
||||
@@ -454,11 +454,10 @@ Connection::LoopExitEventFd::~LoopExitEventFd()
|
||||
close(fd);
|
||||
}
|
||||
|
||||
}}
|
||||
}
|
||||
|
||||
namespace sdbus {
|
||||
namespace sdbus::internal {
|
||||
|
||||
namespace internal {
|
||||
std::unique_ptr<sdbus::internal::IConnection> createConnection()
|
||||
{
|
||||
auto connection = sdbus::createConnection();
|
||||
@@ -466,8 +465,11 @@ std::unique_ptr<sdbus::internal::IConnection> createConnection()
|
||||
auto connectionInternal = dynamic_cast<sdbus::internal::IConnection*>(connection.get());
|
||||
return std::unique_ptr<sdbus::internal::IConnection>(connectionInternal);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace sdbus {
|
||||
|
||||
std::unique_ptr<sdbus::IConnection> createConnection()
|
||||
{
|
||||
return createSystemBusConnection();
|
||||
|
||||
Reference in New Issue
Block a user