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/gc-anchored.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gc-anchored.cpp') diff --git a/src/gc-anchored.cpp b/src/gc-anchored.cpp index 3f80bccde..517db2291 100644 --- a/src/gc-anchored.cpp +++ b/src/gc-anchored.cpp @@ -28,27 +28,27 @@ typedef Debug::SimpleEvent RefCountEvent; class BaseAnchorEvent : public RefCountEvent { public: BaseAnchorEvent(Anchored const *object, int bias, - Util::ptr_shared name) + char const *name) : RefCountEvent(name) { - _addProperty("base", Util::format("%p", Core::base(const_cast(object)))); - _addProperty("pointer", Util::format("%p", object)); - _addProperty("class", Debug::demangle(typeid(*object).name())); - _addProperty("new-refcount", Util::format("%d", object->_anchored_refcount() + bias)); + _addProperty("base", Util::format("%p", Core::base(const_cast(object))).pointer()); + _addProperty("pointer", Util::format("%p", object).pointer()); + _addProperty("class", Debug::demangle(typeid(*object).name()).pointer()); + _addProperty("new-refcount", object->_anchored_refcount() + bias); } }; class AnchorEvent : public BaseAnchorEvent { public: AnchorEvent(Anchored const *object) - : BaseAnchorEvent(object, 1, Util::share_static_string("gc-anchor")) + : BaseAnchorEvent(object, 1, "gc-anchor") {} }; class ReleaseEvent : public BaseAnchorEvent { public: ReleaseEvent(Anchored const *object) - : BaseAnchorEvent(object, -1, Util::share_static_string("gc-release")) + : BaseAnchorEvent(object, -1, "gc-release") {} }; -- cgit v1.2.3