summaryrefslogtreecommitdiffstats
path: root/src/gc-anchored.cpp
diff options
context:
space:
mode:
authorJan Lingscheid <jan.linscheid@auticon.de>2017-10-18 14:03:34 +0000
committerJan Lingscheid <jan.linscheid@auticon.de>2017-10-18 14:03:34 +0000
commit41b862f1c4eaea48bdd0d546e2bb31907f15857b (patch)
treee667c91439f0f04aa1f2cec1d3eafddf80bc4ecc /src/gc-anchored.cpp
parentReplace boost::shared_ptr (diff)
downloadinkscape-41b862f1c4eaea48bdd0d546e2bb31907f15857b.tar.gz
inkscape-41b862f1c4eaea48bdd0d546e2bb31907f15857b.zip
Refactor Util::ptr_shared
Util::ptr_shared<T> was only used in its <char> specialization, so it is now refactored into a non-template class. Using it with arbitary classes was dangerous anyway.
Diffstat (limited to 'src/gc-anchored.cpp')
-rw-r--r--src/gc-anchored.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gc-anchored.cpp b/src/gc-anchored.cpp
index 4abd44b57..3ce6eff7b 100644
--- a/src/gc-anchored.cpp
+++ b/src/gc-anchored.cpp
@@ -27,7 +27,7 @@ typedef Debug::SimpleEvent<Debug::Event::REFCOUNT> RefCountEvent;
class BaseAnchorEvent : public RefCountEvent {
public:
BaseAnchorEvent(Anchored const *object, int bias,
- Util::ptr_shared<char> name)
+ Util::ptr_shared name)
: RefCountEvent(name)
{
_addProperty("base", Util::format("%p", Core::base(const_cast<Anchored *>(object))));