[MOAB-dev] r5015 - in MOAB/trunk/src: . moab

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Jun 16 08:44:19 CDT 2011


Author: kraftche
Date: 2011-06-16 08:44:19 -0500 (Thu, 16 Jun 2011)
New Revision: 5015

Modified:
   MOAB/trunk/src/Range.cpp
   MOAB/trunk/src/moab/Range.hpp
Log:
change return type of Range::size() to size_t

Modified: MOAB/trunk/src/Range.cpp
===================================================================
--- MOAB/trunk/src/Range.cpp	2011-06-16 13:13:58 UTC (rev 5014)
+++ MOAB/trunk/src/Range.cpp	2011-06-16 13:44:19 UTC (rev 5015)
@@ -59,11 +59,11 @@
 /*! 
   returns the number of values this list represents
  */
-EntityHandle Range::size() const
+size_t Range::size() const
 {
   // go through each pair and add up the number of values
   // we have.
-  EntityHandle size=0;
+  size_t size=0;
   for(PairNode* iter = mHead.mNext; iter != &mHead; iter = iter->mNext)
   {
     size += ((iter->second - iter->first) + 1);

Modified: MOAB/trunk/src/moab/Range.hpp
===================================================================
--- MOAB/trunk/src/moab/Range.hpp	2011-06-16 13:13:58 UTC (rev 5014)
+++ MOAB/trunk/src/moab/Range.hpp	2011-06-16 13:44:19 UTC (rev 5015)
@@ -232,7 +232,7 @@
   inline const_reverse_iterator rend() const;
 
   //! return the number of values this Ranges represents
-  EntityHandle size() const;
+  size_t size() const;
 
   //! return the number of range pairs in the list
   size_t psize() const;





















More information about the moab-dev mailing list