diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2019-01-22 00:47:20 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2019-01-22 00:47:20 +0000 |
| commit | f66273e08fab8e2f08f90b05871bba28e9a95c83 (patch) | |
| tree | 10a8e69a5ccf6e91a2e68e44c438935cfd28aa27 /src | |
| parent | Tidy memory management in toolbars (diff) | |
| download | inkscape-f66273e08fab8e2f08f90b05871bba28e9a95c83.tar.gz inkscape-f66273e08fab8e2f08f90b05871bba28e9a95c83.zip | |
Tidy memory management in toolbars
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/toolbar/node-toolbar.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ui/toolbar/node-toolbar.h b/src/ui/toolbar/node-toolbar.h index 80673a833..f688173b6 100644 --- a/src/ui/toolbar/node-toolbar.h +++ b/src/ui/toolbar/node-toolbar.h @@ -54,13 +54,13 @@ class UnitTracker; namespace Toolbar { class NodeToolbar : public Toolbar { private: - UI::Widget::UnitTracker *_tracker; + std::unique_ptr<UI::Widget::UnitTracker> _tracker; - PrefPusher *_pusher_show_transform_handles; - PrefPusher *_pusher_show_handles; - PrefPusher *_pusher_show_outline; - PrefPusher *_pusher_edit_clipping_paths; - PrefPusher *_pusher_edit_masks; + std::unique_ptr<PrefPusher> _pusher_show_transform_handles; + std::unique_ptr<PrefPusher> _pusher_show_handles; + std::unique_ptr<PrefPusher> _pusher_show_outline; + std::unique_ptr<PrefPusher> _pusher_edit_clipping_paths; + std::unique_ptr<PrefPusher> _pusher_edit_masks; InkAction *_nodes_lpeedit; @@ -84,7 +84,6 @@ private: protected: NodeToolbar(SPDesktop *desktop); - ~NodeToolbar() override; public: static GtkWidget * prep(SPDesktop *desktop, GtkActionGroup* mainActions); |
