summaryrefslogtreecommitdiff
path: root/vcl/inc/sallayout.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-16 09:51:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-17 08:10:28 +0100
commitef3a2e634ca81f5fb292f88c4d7eb28d170ce3dd (patch)
tree890e475df2a7ad05172088688cc200e7f2f5f46e /vcl/inc/sallayout.hxx
parent93117d454afc4d7402ae791526e66330f981c4d0 (diff)
loplugin:useuniqueptr in MultiSalLayout
Change-Id: I57ac9cf988dfccfcb38c69ca9c66c2ad77bbdada Reviewed-on: https://gerrit.libreoffice.org/44819 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/sallayout.hxx')
-rw-r--r--vcl/inc/sallayout.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx
index 04d488d45fff..ff008c44dd55 100644
--- a/vcl/inc/sallayout.hxx
+++ b/vcl/inc/sallayout.hxx
@@ -22,6 +22,7 @@
#include <iostream>
#include <list>
+#include <memory>
#include <vector>
#include <basegfx/polygon/b2dpolypolygon.hxx>
@@ -243,7 +244,7 @@ private:
MultiSalLayout& operator=( const MultiSalLayout& ) = delete;
private:
- SalLayout* mpLayouts[ MAX_FALLBACK ];
+ std::unique_ptr<SalLayout> mpLayouts[ MAX_FALLBACK ];
const PhysicalFontFace* mpFallbackFonts[ MAX_FALLBACK ];
ImplLayoutRuns maFallbackRuns[ MAX_FALLBACK ];
int mnLevel;