From 2487c54d1c6ff00d3d37bb326fc86206764ecfdc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 18 Oct 2011 12:51:45 +0200 Subject: Fixed uses of memmove in DynamicList. --- xml2cmp/source/support/list.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xml2cmp') diff --git a/xml2cmp/source/support/list.hxx b/xml2cmp/source/support/list.hxx index 80b9e5e647ea..cf949a070e2a 100644 --- a/xml2cmp/source/support/list.hxx +++ b/xml2cmp/source/support/list.hxx @@ -227,7 +227,7 @@ DynamicList::insert(unsigned pos, XY * const & elem_) return; this->checkSize(this->len+2); - memmove(this->inhalt[pos+1], this->inhalt[pos], (this->len-pos) * sizeof(XY*) ); + memmove(&this->inhalt[pos+1], &this->inhalt[pos], (this->len-pos) * sizeof(XY*) ); this->inhalt[pos] = elem_; this->len++; } @@ -240,7 +240,7 @@ DynamicList::remove( unsigned pos ) return; this->len--; delete this->inhalt[pos]; - memmove(this->inhalt[pos], this->inhalt[pos+1], (this->len-pos) * sizeof(XY*) ); + memmove(&this->inhalt[pos], &this->inhalt[pos+1], (this->len-pos) * sizeof(XY*) ); } -- cgit v1.2.3