[cgma-dev] r5919 - cgm/trunk/util

iulian at mcs.anl.gov iulian at mcs.anl.gov
Mon Dec 17 11:59:32 CST 2012


Author: iulian
Date: 2012-12-17 11:59:31 -0600 (Mon, 17 Dec 2012)
New Revision: 5919

Modified:
   cgm/trunk/util/DLIList.hpp
Log:
similar to commit 5918, but on the trunk
eliminate warning about shadowed member data
index is a member data in DLIList class
replace it with index1


Modified: cgm/trunk/util/DLIList.hpp
===================================================================
--- cgm/trunk/util/DLIList.hpp	2012-12-17 16:22:51 UTC (rev 5918)
+++ cgm/trunk/util/DLIList.hpp	2012-12-17 17:59:31 UTC (rev 5919)
@@ -584,12 +584,12 @@
 }
 
 template <class X> inline
-X & DLIList<X>::operator[](int index) const
+X & DLIList<X>::operator[](int index1) const
 {
-  if(index < 0 || index >= itemCount)
+  if(index1 < 0 || index1 >= itemCount)
     throw std::out_of_range ("Index out of Bounds");
     //assert( index >= 0 && index < itemCount );
-    return listArray[index];
+    return listArray[index1];
 }
 
 template <class X> inline



More information about the cgma-dev mailing list