summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-15 10:49:33 +0200
committerMichael Stahl <mstahl@redhat.com>2012-08-16 15:14:59 +0200
commita6f60d546ac61bfd9db7fad06138512cde4acb5a (patch)
treed77ef1fea910a5374290b1d191af89ea4b589c38 /svx/source/svdraw
parentdeb266708f4d3ab3c64c33e93c96f19479da7d95 (diff)
Convert aList in SdrGluePointList class from Container to std::vector
Change-Id: I401b01d5d1072262d0bd2b85298751c9180004d3
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/svdfmtf.hxx1
-rw-r--r--svx/source/svdraw/svdglue.cxx4
2 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdfmtf.hxx b/svx/source/svdraw/svdfmtf.hxx
index 96e12cb3f1df..85bebfbc3343 100644
--- a/svx/source/svdraw/svdfmtf.hxx
+++ b/svx/source/svdraw/svdfmtf.hxx
@@ -29,6 +29,7 @@
#ifndef _SVDFMTF_HXX
#define _SVDFMTF_HXX
+#include <tools/contnr.hxx>
#include <vcl/metaact.hxx>
#include <vcl/virdev.hxx>
#include <svx/svdobj.hxx>
diff --git a/svx/source/svdraw/svdglue.cxx b/svx/source/svdraw/svdglue.cxx
index 1490d377292e..911879dbee1e 100644
--- a/svx/source/svdraw/svdglue.cxx
+++ b/svx/source/svdraw/svdglue.cxx
@@ -277,7 +277,7 @@ void SdrGluePointList::Clear()
for (sal_uInt16 i=0; i<nAnz; i++) {
delete GetObject(i);
}
- aList.Clear();
+ aList.clear();
}
void SdrGluePointList::operator=(const SdrGluePointList& rSrcList)
@@ -320,7 +320,7 @@ sal_uInt16 SdrGluePointList::Insert(const SdrGluePoint& rGP)
}
pGP->SetId(nId);
}
- aList.Insert(pGP,nInsPos);
+ aList.insert(aList.begin()+nInsPos, pGP);
return nInsPos;
}