// Author: Vadim Zeitlin
// Modified by:
// Created: 16.10.97
-// RCS-ID: $Id$
// Copyright: (c) 1997 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence: wxWidgets license
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
/*****************************************************************************
base_array::operator[](uiIndex + i) = new T(item); \
} \
\
-int name::Index(const T& Item, bool bFromEnd) const \
+int name::Index(const T& item, bool bFromEnd) const \
{ \
if ( bFromEnd ) { \
if ( size() > 0 ) { \
size_t ui = size() - 1; \
do { \
- if ( (T*)base_array::operator[](ui) == &Item ) \
- return ui; \
+ if ( (T*)base_array::operator[](ui) == &item ) \
+ return static_cast<int>(ui); \
ui--; \
} \
while ( ui != 0 ); \
} \
else { \
for( size_t ui = 0; ui < size(); ui++ ) { \
- if( (T*)base_array::operator[](ui) == &Item ) \
- return ui; \
+ if( (T*)base_array::operator[](ui) == &item ) \
+ return static_cast<int>(ui); \
} \
} \
\