From 41b862f1c4eaea48bdd0d546e2bb31907f15857b Mon Sep 17 00:00:00 2001 From: Jan Lingscheid Date: Wed, 18 Oct 2017 16:03:34 +0200 Subject: Refactor Util::ptr_shared Util::ptr_shared was only used in its specialization, so it is now refactored into a non-template class. Using it with arbitary classes was dangerous anyway. --- src/gc-anchored.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gc-anchored.cpp') 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 RefCountEvent; class BaseAnchorEvent : public RefCountEvent { public: BaseAnchorEvent(Anchored const *object, int bias, - Util::ptr_shared name) + Util::ptr_shared name) : RefCountEvent(name) { _addProperty("base", Util::format("%p", Core::base(const_cast(object)))); -- cgit v1.2.3