summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-02-05 10:02:03 +0900
committerTomaž Vajngerl <quikee@gmail.com>2018-02-05 20:12:28 +0100
commit94411b5765427344d106e5cca12c032ca5a1ea6a (patch)
tree0f1003c7412b66737cac85867b24465c22a1fe5c /include
parent2db0c3e04348d3096dff72c568c461be3cb1a0c6 (diff)
use unique_ptr to store GraphicObject for SdrGrafObj
Change-Id: I578156cd96e1e1400e93e96ace8a38759e3d1b2c Reviewed-on: https://gerrit.libreoffice.org/49221 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdograf.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/svdograf.hxx b/include/svx/svdograf.hxx
index b4fd3baba256..f31ed858e575 100644
--- a/include/svx/svdograf.hxx
+++ b/include/svx/svdograf.hxx
@@ -94,8 +94,8 @@ private:
OUString aFileName; // If it's a Link, the filename can be found in here
OUString aReferer;
OUString aFilterName;
- GraphicObject* pGraphic; // In order to speed up output of bitmaps, especially rotated ones
- GraphicObject* mpReplacementGraphic;
+ std::unique_ptr<GraphicObject> mpGraphicObject; // In order to speed up output of bitmaps, especially rotated ones
+ std::unique_ptr<GraphicObject> mpReplacementGraphicObject;
SdrGraphicLink* pGraphicLink; // And here a pointer for linked graphics
bool bMirrored:1; // True: the graphic is horizontal, which means it's mirrored along the y-axis