diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2019-01-23 04:24:00 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2019-01-24 17:08:27 +0000 |
| commit | 258914e0577cd0d556abe2356be908b513a3b876 (patch) | |
| tree | e2d5fe3d1f107e5eeec011aa120372fe9d1b3706 /src/object/sp-object.cpp | |
| parent | Logger: Switch TagStack to std::shared_ptr. (diff) | |
| download | inkscape-258914e0577cd0d556abe2356be908b513a3b876.tar.gz inkscape-258914e0577cd0d556abe2356be908b513a3b876.zip | |
Event: Switch all call sites from Util::ptr_shared to char const* or std::shared_ptr.
Diffstat (limited to '')
| -rw-r--r-- | src/object/sp-object.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<Debug::Event::REFCOUNT> 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") {} }; |
