[ekiga] DBUS: Use a shared_ptr to handle the pointer to the core.



commit 0afba73a4ccc3b439353d35beae40919c1d5bb67
Author: Damien Sandras <dsandras beip be>
Date:   Sun Apr 29 18:07:25 2012 +0200

    DBUS: Use a shared_ptr to handle the pointer to the core.

 src/dbus-helper/dbus.cpp |    4 ++--
 src/dbus-helper/dbus.h   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dbus-helper/dbus.cpp b/src/dbus-helper/dbus.cpp
index 9647e43..a537c3a 100644
--- a/src/dbus-helper/dbus.cpp
+++ b/src/dbus-helper/dbus.cpp
@@ -60,7 +60,7 @@ G_DEFINE_TYPE(EkigaDBusComponent, ekiga_dbus_component, G_TYPE_OBJECT);
 
 struct _EkigaDBusComponentPrivate
 {
-  Ekiga::ServiceCore *core;
+  Ekiga::ServiceCorePtr core;
 };
 
 /**************************
@@ -233,7 +233,7 @@ ekiga_dbus_claim_ownership ()
  *       the manager and other key components are running.
  */
 EkigaDBusComponent *
-ekiga_dbus_component_new (Ekiga::ServiceCore *core)
+ekiga_dbus_component_new (Ekiga::ServiceCorePtr core)
 {
   DBusGConnection *bus;
   GError *error = NULL;
diff --git a/src/dbus-helper/dbus.h b/src/dbus-helper/dbus.h
index 18c68de..11a9447 100644
--- a/src/dbus-helper/dbus.h
+++ b/src/dbus-helper/dbus.h
@@ -62,7 +62,7 @@ struct _EkigaDBusComponent {
 typedef GObjectClass EkigaDBusComponentClass;
 
 GType                ekiga_dbus_component_get_type ();
-EkigaDBusComponent  *ekiga_dbus_component_new (Ekiga::ServiceCore *core);
+EkigaDBusComponent  *ekiga_dbus_component_new (Ekiga::ServiceCorePtr core);
 
 gboolean             ekiga_dbus_claim_ownership ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]