From 4ea92c9a591825b2b1f6ebe5c1fc9d00e75e2e5f Mon Sep 17 00:00:00 2001
From: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Tue, 20 Jul 2021 19:18:07 +0200
Subject: flatten data in SdrGluePointList

no need to allocate SdrGluePoint separately

Change-Id: I7cc6bc22a1d43da8fdd2a4c951246955b96a7c3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119290
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
---
 include/svx/svdglue.hxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'include/svx')

diff --git a/include/svx/svdglue.hxx b/include/svx/svdglue.hxx
index 7065b34766a4..bddaf349c4a8 100644
--- a/include/svx/svdglue.hxx
+++ b/include/svx/svdglue.hxx
@@ -117,7 +117,7 @@ public:
 #define SDRGLUEPOINT_NOTFOUND 0xFFFF
 
 class SVXCORE_DLLPUBLIC SdrGluePointList {
-    std::vector<std::unique_ptr<SdrGluePoint>> aList;
+    std::vector<SdrGluePoint> aList;
 public:
     SdrGluePointList() {};
     SdrGluePointList(const SdrGluePointList& rSrcList) { *this=rSrcList; }
@@ -131,8 +131,8 @@ public:
     {
         aList.erase(aList.begin()+nPos);
     }
-    SdrGluePoint&       operator[](sal_uInt16 nPos)                             { return *aList[nPos]; }
-    const SdrGluePoint& operator[](sal_uInt16 nPos) const                       { return *aList[nPos]; }
+    SdrGluePoint&       operator[](sal_uInt16 nPos)                             { return aList[nPos]; }
+    const SdrGluePoint& operator[](sal_uInt16 nPos) const                       { return aList[nPos]; }
     sal_uInt16          FindGluePoint(sal_uInt16 nId) const;
     sal_uInt16          HitTest(const Point& rPnt, const OutputDevice& rOut, const SdrObject* pObj) const;
     void                Invalidate(vcl::Window& rWin, const SdrObject* pObj) const;
-- 
cgit