summaryrefslogtreecommitdiffstats
path: root/svl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-29 22:41:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-29 23:09:38 +0100
commit321216ea83533db83a603f6c8ea2eec0abccf288 (patch)
treedcc7e8b0b05cf94963e5e025e8c1433693c85a87 /svl/source
parentConvert InsCaptionOptArr to boost::ptr_vector (diff)
downloadcore-321216ea83533db83a603f6c8ea2eec0abccf288.tar.gz
core-321216ea83533db83a603f6c8ea2eec0abccf288.zip
Remove strange DummyType
I can see no purpose to DummyType Change-Id: I25d9d3b321df28f8c2bcb4bf915eb176a14fdaf8
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/memtools/svarray.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/svl/source/memtools/svarray.cxx b/svl/source/memtools/svarray.cxx
index c6fa6dd0e62b..6f1f1cb0cb25 100644
--- a/svl/source/memtools/svarray.cxx
+++ b/svl/source/memtools/svarray.cxx
@@ -18,6 +18,7 @@
*/
#include <svl/svarray.hxx>
+#include <string.h> // memmove()
SvPtrarr::SvPtrarr( sal_uInt16 nInit )
: pData (0),
@@ -65,6 +66,15 @@ void SvPtrarr::Insert( const VoidPtr* pE, sal_uInt16 nL, sal_uInt16 nP )
nA = nA + nL; nFree = nFree - nL;
}
+void SvPtrarr::Insert( const SvPtrarr * pI, sal_uInt16 nP,
+ sal_uInt16 nS, sal_uInt16 nE )
+{
+ if( USHRT_MAX == nE )
+ nE = pI->nA;
+ if( nS < nE )
+ Insert( (const VoidPtr*)pI->pData+nS, (sal_uInt16)nE-nS, nP );
+}
+
void SvPtrarr::Remove( sal_uInt16 nP, sal_uInt16 nL )
{
if( !nL )