diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2019-01-22 01:07:04 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2019-01-22 01:07:04 +0000 |
| commit | 2bbb773127857150ec03faafcd6c77cd14efbb45 (patch) | |
| tree | d5879d3ef62c1bc7ecc57cf7f9ee3d31ca9ee8da /src/ui/toolbar/calligraphy-toolbar.h | |
| parent | NodeToolbar: Fix initialisation (diff) | |
| download | inkscape-2bbb773127857150ec03faafcd6c77cd14efbb45.tar.gz inkscape-2bbb773127857150ec03faafcd6c77cd14efbb45.zip | |
Tidy more memory mgmt in toolbars
Diffstat (limited to 'src/ui/toolbar/calligraphy-toolbar.h')
| -rw-r--r-- | src/ui/toolbar/calligraphy-toolbar.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/toolbar/calligraphy-toolbar.h b/src/ui/toolbar/calligraphy-toolbar.h index 617d25aef..f37d84808 100644 --- a/src/ui/toolbar/calligraphy-toolbar.h +++ b/src/ui/toolbar/calligraphy-toolbar.h @@ -65,9 +65,9 @@ private: InkToggleAction *_tracebackground; InkToggleAction *_usetilt; - PrefPusher *_tracebackground_pusher; - PrefPusher *_usepressure_pusher; - PrefPusher *_usetilt_pusher; + std::unique_ptr<PrefPusher> _tracebackground_pusher; + std::unique_ptr<PrefPusher> _usepressure_pusher; + std::unique_ptr<PrefPusher> _usetilt_pusher; void width_value_changed(); void velthin_value_changed(); @@ -90,8 +90,6 @@ protected: : Toolbar(desktop) {} - ~CalligraphyToolbar() override; - public: static GtkWidget * prep(SPDesktop *desktop, GtkActionGroup* mainActions); }; |
