From 951fb690f1cde250f4d3cc6565ec4fc63f5df8fa Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 24 Aug 2009 16:42:15 +0200 Subject: trivial simplification: make LoadSettings() take char*, not string& param and some cosmetics... Signed-off-by: Denys Vlasenko --- src/Daemon/CommLayerServerDBus.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/Daemon/CommLayerServerDBus.cpp') diff --git a/src/Daemon/CommLayerServerDBus.cpp b/src/Daemon/CommLayerServerDBus.cpp index f1e36592..7fa4fb65 100644 --- a/src/Daemon/CommLayerServerDBus.cpp +++ b/src/Daemon/CommLayerServerDBus.cpp @@ -4,12 +4,11 @@ DBus::Connection *CCommLayerServerDBus::init_dbus(CCommLayerServerDBus *self) { - CCommLayerServerDBus *server = (CCommLayerServerDBus*) self; - server->m_pDispatcher = new DBus::Glib::BusDispatcher(); - server->m_pDispatcher->attach(NULL); + self->m_pDispatcher = new DBus::Glib::BusDispatcher(); + self->m_pDispatcher->attach(NULL); DBus::default_dispatcher = self->m_pDispatcher; - server->m_pConn = new DBus::Connection(DBus::Connection::SystemBus()); - return server->m_pConn; + self->m_pConn = new DBus::Connection(DBus::Connection::SystemBus()); + return self->m_pConn; } CCommLayerServerDBus::CCommLayerServerDBus() -- cgit