summaryrefslogtreecommitdiffstats
path: root/src/gc-anchored.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-01-23 04:24:00 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2019-01-24 17:08:27 +0000
commit258914e0577cd0d556abe2356be908b513a3b876 (patch)
treee2d5fe3d1f107e5eeec011aa120372fe9d1b3706 /src/gc-anchored.cpp
parentLogger: Switch TagStack to std::shared_ptr. (diff)
downloadinkscape-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 'src/gc-anchored.cpp')
-rw-r--r--src/gc-anchored.cpp14
1 files changed, 7 insertions, 7 deletions
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<Debug::Event::REFCOUNT> 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<Anchored *>(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<Anchored *>(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")
{}
};