diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 19:04:23 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 19:04:23 +0000 |
commit | 3d8019763e886f6042ca2bf5a0e482e3a23abd90 (patch) | |
tree | a25214905438e200bb1c144bb2a3db2b393169f2 /xml2cmp | |
parent | 92c78b7b063a0c930c6039f5d38e14df8dacb2fa (diff) |
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).
Diffstat (limited to 'xml2cmp')
-rw-r--r-- | xml2cmp/source/support/list.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
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<XX>::List() template <class XX> void -List<XX>::insert(unsigned pos, const XX & elem) +List<XX>::insert(unsigned pos, const XX & elem_) { if ( pos > len ) return; @@ -151,7 +151,7 @@ List<XX>::insert(unsigned pos, const XX & elem) { inhalt[p] = inhalt[p-1]; } - inhalt[pos] = elem; + inhalt[pos] = elem_; len++; } @@ -231,14 +231,14 @@ DynamicList<XY>::~DynamicList() template <class XY> void -DynamicList<XY>::insert(unsigned pos, XY * const & elem) +DynamicList<XY>::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++; } |