diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-11-22 05:59:31 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-12-03 09:35:13 +0000 |
| commit | da21d890c67eb751e12f0af89aac67ecb2629ca0 (patch) | |
| tree | 0a100c27779967329616f87da2c7be8d613c9273 /src/desktop.h | |
| parent | Replace InkGC with std::shared_ptr for MessageStack (diff) | |
| download | inkscape-da21d890c67eb751e12f0af89aac67ecb2629ca0.tar.gz inkscape-da21d890c67eb751e12f0af89aac67ecb2629ca0.zip | |
Use std::unique_ptr for all MessageContext
Diffstat (limited to 'src/desktop.h')
| -rw-r--r-- | src/desktop.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desktop.h b/src/desktop.h index 17b34b1a2..81c837921 100644 --- a/src/desktop.h +++ b/src/desktop.h @@ -252,7 +252,7 @@ public: void destroy(); Inkscape::MessageContext *guidesMessageContext() const { - return _guides_message_context; + return _guides_message_context.get(); } Inkscape::Display::TemporaryItem * add_temporary_canvasitem (SPCanvasItem *item, guint lifetime, bool move_to_bottom = true); @@ -449,7 +449,7 @@ public: private: Inkscape::UI::View::EditWidgetInterface *_widget; - Inkscape::MessageContext *_guides_message_context; + std::unique_ptr<Inkscape::MessageContext> _guides_message_context; bool _active; // This simple class ensures that _w2d is always in sync with _rotation and _scale |
