[cgma-dev] r5918 - cgm/branches/merge-cubit12.2/util

iulian at mcs.anl.gov iulian at mcs.anl.gov
Mon Dec 17 10:22:51 CST 2012


Author: iulian
Date: 2012-12-17 10:22:51 -0600 (Mon, 17 Dec 2012)
New Revision: 5918

Modified:
   cgm/branches/merge-cubit12.2/util/DLIList.hpp
Log:
eliminate warning about shadowed member data
index is a member data in DLIList class
replace it with index1
might need to do the same on the trunk


Modified: cgm/branches/merge-cubit12.2/util/DLIList.hpp
===================================================================
--- cgm/branches/merge-cubit12.2/util/DLIList.hpp	2012-12-14 23:15:04 UTC (rev 5917)
+++ cgm/branches/merge-cubit12.2/util/DLIList.hpp	2012-12-17 16:22:51 UTC (rev 5918)
@@ -559,10 +559,10 @@
 }
 
 template <class X> inline
-X & DLIList<X>::operator[](int index) const
+X & DLIList<X>::operator[](int index1) const
 {
-    assert( index >= 0 && index < itemCount );
-    return listArray[index];
+    assert( index1 >= 0 && index1 < itemCount );
+    return listArray[index1];
 }
 
 template <class X> inline



More information about the cgma-dev mailing list