Ref T709, style

This commit is contained in:
Klaus Basan
2019-07-26 17:08:33 +02:00
committed by Mat Sutcliffe
parent f2bf038501
commit a5cefcf18c
4 changed files with 7 additions and 10 deletions

View File

@@ -18,7 +18,6 @@
namespace XSwiftBus namespace XSwiftBus
{ {
CDBusServer::CDBusServer() CDBusServer::CDBusServer()
{ {
dbus_threads_init_default(); dbus_threads_init_default();
@@ -78,6 +77,7 @@ namespace XSwiftBus
void CDBusServer::onNewConnection(DBusServer *, DBusConnection *conn) void CDBusServer::onNewConnection(DBusServer *, DBusConnection *conn)
{ {
// called by listener and the DBus connection for xSwiftBus afterwards
INFO_LOG("onNewConnection"); INFO_LOG("onNewConnection");
auto dbusConnection = std::make_shared<CDBusConnection>(conn); auto dbusConnection = std::make_shared<CDBusConnection>(conn);
m_newConnectionFunc(dbusConnection); m_newConnectionFunc(dbusConnection);
@@ -88,5 +88,4 @@ namespace XSwiftBus
auto *obj = static_cast<CDBusServer *>(data); auto *obj = static_cast<CDBusServer *>(data);
obj->onNewConnection(server, conn); obj->onNewConnection(server, conn);
} }
} }

View File

@@ -24,7 +24,6 @@
namespace XSwiftBus namespace XSwiftBus
{ {
class CDBusObject; class CDBusObject;
//! DBus connection //! DBus connection
@@ -38,7 +37,7 @@ namespace XSwiftBus
CDBusServer(); CDBusServer();
//! Destructor //! Destructor
~CDBusServer() override; virtual ~CDBusServer() override;
//! Set the dispatcher //! Set the dispatcher
void setDispatcher(CDBusDispatcher *dispatcher); void setDispatcher(CDBusDispatcher *dispatcher);
@@ -77,7 +76,6 @@ namespace XSwiftBus
CDBusError m_lastError; CDBusError m_lastError;
NewConnectionFunc m_newConnectionFunc; NewConnectionFunc m_newConnectionFunc;
}; };
} // ns
}
#endif // guard #endif // guard