diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-11-22 04:17:27 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-12-03 09:35:13 +0000 |
| commit | 6af653ae04272a27390821842d3e8e23c6af3efe (patch) | |
| tree | 33956cb2251979c6d3b06882d858a6c36f8c5dfc /src/message-stack.h | |
| parent | Add other sofwar binds to new keys, add missing one (diff) | |
| download | inkscape-6af653ae04272a27390821842d3e8e23c6af3efe.tar.gz inkscape-6af653ae04272a27390821842d3e8e23c6af3efe.zip | |
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.
Diffstat (limited to 'src/message-stack.h')
| -rw-r--r-- | src/message-stack.h | 9 |
1 files changed, 2 insertions, 7 deletions
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 <glibmm/ustring.h> #include <sigc++/sigc++.h> -#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() { |
