From 3d8019763e886f6042ca2bf5a0e482e3a23abd90 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Mon, 19 Jun 2006 19:04:23 +0000 Subject: INTEGRATION: CWS warnings01 (1.8.4); FILE MERGED 2005/11/07 12:10:03 sb 1.8.4.1: #i53898# Made code warning-free (additional -W switches for GCC). --- xml2cmp/source/support/list.hxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'xml2cmp/source') diff --git a/xml2cmp/source/support/list.hxx b/xml2cmp/source/support/list.hxx index 38c12a62ea3a..ecb4d25481f4 100644 --- a/xml2cmp/source/support/list.hxx +++ b/xml2cmp/source/support/list.hxx @@ -4,9 +4,9 @@ * * $RCSfile: list.hxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: rt $ $Date: 2005-09-09 11:57:10 $ + * last change: $Author: hr $ $Date: 2006-06-19 20:04:23 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -66,8 +66,8 @@ class List unsigned pos, const XX & elem ); void push_back( - const XX & elem) - { insert(size(),elem); } + const XX & elem_) + { insert(size(),elem_); } virtual void remove( unsigned pos ); @@ -141,7 +141,7 @@ List::List() template void -List::insert(unsigned pos, const XX & elem) +List::insert(unsigned pos, const XX & elem_) { if ( pos > len ) return; @@ -151,7 +151,7 @@ List::insert(unsigned pos, const XX & elem) { inhalt[p] = inhalt[p-1]; } - inhalt[pos] = elem; + inhalt[pos] = elem_; len++; } @@ -231,14 +231,14 @@ DynamicList::~DynamicList() template void -DynamicList::insert(unsigned pos, XY * const & elem) +DynamicList::insert(unsigned pos, XY * const & elem_) { if ( pos > this->len ) return; checkSize(this->len+2); memmove(this->inhalt[pos+1], this->inhalt[pos], (this->len-pos) * sizeof(XY*) ); - this->inhalt[pos] = elem; + this->inhalt[pos] = elem_; this->len++; } -- cgit