Convert maHandles field from Container to std::vector

Change-Id: I28d96586e7e48209021abed73959e8a5e6dc2d61
This commit is contained in:
Noel Grandin 2012-08-15 15:20:34 +02:00 committed by Michael Stahl
parent 32b2f88ad6
commit f23f141807

View file

@ -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];