diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2017-09-02 07:09:21 +0900 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-02 08:07:52 +0200 |
commit | cba232f91898af9e57a5c6980e11974e1a68f2a1 (patch) | |
tree | 0b3927e2f1b611d1f58c72ac6af0ba7f43996055 /include/svx/svdopath.hxx | |
parent | 9245ce93b0c9a55bd84e8b448919db2d706e9b06 (diff) |
svx: Simplify code with std::unique_ptr
as SdrPathObj owns mpDAC.
Change-Id: I3e4411046fa55ae8ffae2da5e406ad7d20a7ca6e
Reviewed-on: https://gerrit.libreoffice.org/41818
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/svdopath.hxx')
-rw-r--r-- | include/svx/svdopath.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/svdopath.hxx b/include/svx/svdopath.hxx index 9b527eb3843e..aa93f3cfca91 100644 --- a/include/svx/svdopath.hxx +++ b/include/svx/svdopath.hxx @@ -24,6 +24,7 @@ #include <svx/xpoly.hxx> #include <svx/svxdllapi.h> #include <basegfx/vector/b2enums.hxx> +#include <memory> class ImpPathForDragAndCreate; @@ -53,7 +54,7 @@ protected: SdrObjKind meKind; // for isolation of old Drag/Create code - ImpPathForDragAndCreate* mpDAC; + std::unique_ptr<ImpPathForDragAndCreate> mpDAC; // brightness - used in EnhancedCustomShapes2d.cxx for DARKEN[LESS] and LIGHTEN[LESS] segments implementation double mdBrightness; @@ -63,7 +64,6 @@ protected: void ImpForceKind(); void ImpForceLineAngle(); ImpPathForDragAndCreate& impGetDAC() const; - void impDeleteDAC() const; public: double GetBrightness() { return mdBrightness; } |