diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-15 15:20:34 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-08-16 18:44:06 +0200 |
commit | f23f1418071042787f3cfa33c97e7b228a02f3c7 (patch) | |
tree | 58b5383c597e43b5f58b03b56f7c08a5827f6cb5 /svx | |
parent | 32b2f88ad6e18ea061418a9092672f6ac8fcfb36 (diff) |
Convert maHandles field from Container to std::vector
Change-Id: I28d96586e7e48209021abed73959e8a5e6dc2d61
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdopath.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx index c5f5c2a8151d..c314267474aa 100644 --- a/svx/source/svdraw/svdopath.cxx +++ b/svx/source/svdraw/svdopath.cxx @@ -120,7 +120,7 @@ struct ImpSdrPathDragData : public SdrDragStatUserData sal_Bool mbMultiPointDrag; const XPolyPolygon maOrig; XPolyPolygon maMove; - Container maHandles; + std::vector<SdrHdl*> maHandles; public: ImpSdrPathDragData(const SdrPathObj& rPO, const SdrHdl& rHdl, sal_Bool bMuPoDr, const SdrDragStat& rDrag); @@ -147,7 +147,7 @@ ImpSdrPathDragData::ImpSdrPathDragData(const SdrPathObj& rPO, const SdrHdl& rHdl if(pTestHdl && pTestHdl->IsSelected() && pTestHdl->GetObj() == pInteractionObject) { - maHandles.Insert(pTestHdl, CONTAINER_APPEND); + maHandles.push_back(pTestHdl); } } @@ -611,9 +611,9 @@ bool ImpPathForDragAndCreate::movePathDrag( SdrDragStat& rDrag ) const if(aDelta.X() || aDelta.Y()) { - for(sal_uInt32 a(0); a < mpSdrPathDragData->maHandles.Count(); a++) + for(sal_uInt32 a(0); a < mpSdrPathDragData->maHandles.size(); a++) { - SdrHdl* pHandle = (SdrHdl*)mpSdrPathDragData->maHandles.GetObject(a); + SdrHdl* pHandle = mpSdrPathDragData->maHandles[a]; const sal_uInt16 nPolyIndex((sal_uInt16)pHandle->GetPolyNum()); const sal_uInt16 nPointIndex((sal_uInt16)pHandle->GetPointNum()); const XPolygon& rOrig = mpSdrPathDragData->maOrig[nPolyIndex]; |