From 94411b5765427344d106e5cca12c032ca5a1ea6a Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 5 Feb 2018 10:02:03 +0900 Subject: use unique_ptr to store GraphicObject for SdrGrafObj MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I578156cd96e1e1400e93e96ace8a38759e3d1b2c Reviewed-on: https://gerrit.libreoffice.org/49221 Reviewed-by: Tomaž Vajngerl Tested-by: Tomaž Vajngerl --- include/svx/svdograf.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 mpGraphicObject; // In order to speed up output of bitmaps, especially rotated ones + std::unique_ptr 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 -- cgit