diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-20 19:18:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-21 10:00:08 +0200 |
commit | 4ea92c9a591825b2b1f6ebe5c1fc9d00e75e2e5f (patch) | |
tree | ab2391ed19f738c9764a0df36a864a63862bac54 /include/svx | |
parent | 4eaf7e4bf2bd1b1b3d3e7b0c987c472cdd836dc6 (diff) |
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>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svdglue.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
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; |