From 258914e0577cd0d556abe2356be908b513a3b876 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 23 Jan 2019 05:24:00 +0100 Subject: Event: Switch all call sites from Util::ptr_shared to char const* or std::shared_ptr. --- src/object/sp-object.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/object/sp-object.cpp') diff --git a/src/object/sp-object.cpp b/src/object/sp-object.cpp index 7d1ee38a3..992c19970 100644 --- a/src/object/sp-object.cpp +++ b/src/object/sp-object.cpp @@ -202,26 +202,26 @@ typedef Debug::SimpleEvent BaseRefCountEvent; class RefCountEvent : public BaseRefCountEvent { public: - RefCountEvent(SPObject *object, int bias, Util::ptr_shared name) + RefCountEvent(SPObject *object, int bias, char const *name) : BaseRefCountEvent(name) { - _addProperty("object", Util::format("%p", object)); - _addProperty("class", Debug::demangle(g_type_name(G_TYPE_FROM_INSTANCE(object)))); - _addProperty("new-refcount", Util::format("%d", G_OBJECT(object)->ref_count + bias)); + _addProperty("object", Util::format("%p", object).pointer()); + _addProperty("class", Debug::demangle(g_type_name(G_TYPE_FROM_INSTANCE(object))).pointer()); + _addProperty("new-refcount", Util::format("%d", G_OBJECT(object)->ref_count + bias).pointer()); } }; class RefEvent : public RefCountEvent { public: RefEvent(SPObject *object) - : RefCountEvent(object, 1, Util::share_static_string("sp-object-ref")) + : RefCountEvent(object, 1, "sp-object-ref") {} }; class UnrefEvent : public RefCountEvent { public: UnrefEvent(SPObject *object) - : RefCountEvent(object, -1, Util::share_static_string("sp-object-unref")) + : RefCountEvent(object, -1, "sp-object-unref") {} }; -- cgit v1.2.3