From 6af653ae04272a27390821842d3e8e23c6af3efe Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 22 Nov 2018 05:17:27 +0100 Subject: Replace InkGC with std::shared_ptr for MessageStack There are many places which still use this stack unmanaged (using desktop->getMessageStack()) but those are all leaf calls which make use of the stack and never store it anywhere, so this is fine. --- src/message-stack.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/message-stack.h') diff --git a/src/message-stack.h b/src/message-stack.h index 7f145cf37..d105095da 100644 --- a/src/message-stack.h +++ b/src/message-stack.h @@ -23,9 +23,6 @@ #include #include -#include "inkgc/gc-managed.h" -#include "gc-finalized.h" -#include "gc-anchored.h" #include "message.h" namespace Inkscape { @@ -48,13 +45,11 @@ namespace Inkscape { * assuming that the message you pushed is still on top is an * invalid and unsafe assumption. */ -class MessageStack : public GC::Managed<>, - public GC::Finalized, - public GC::Anchored +class MessageStack final { public: MessageStack(); - ~MessageStack() override; + ~MessageStack(); /** @brief returns the type of message currently at the top of the stack */ MessageType currentMessageType() { -- cgit v1.2.3