[MOAB-dev] r2629 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed Feb 4 13:18:04 CST 2009


Author: kraftche
Date: 2009-02-04 13:18:04 -0600 (Wed, 04 Feb 2009)
New Revision: 2629

Modified:
   MOAB/trunk/MBCore.cpp
   MOAB/trunk/MBCore.hpp
   MOAB/trunk/MBInterface.hpp
Log:
fix const-ness issues

Modified: MOAB/trunk/MBCore.cpp
===================================================================
--- MOAB/trunk/MBCore.cpp	2009-02-04 19:17:18 UTC (rev 2628)
+++ MOAB/trunk/MBCore.cpp	2009-02-04 19:18:04 UTC (rev 2629)
@@ -747,8 +747,9 @@
 
 //! set the coordinate information for this handle if it is of type Vertex
 //! otherwise, return an error
-MBErrorCode  MBCore::set_coords(MBEntityHandle *entity_handles, const int num_entities, 
-                                  const double *coords)
+MBErrorCode  MBCore::set_coords( const MBEntityHandle *entity_handles, 
+                                 const int num_entities, 
+                                 const double *coords)
 {
 
   MBErrorCode status = MB_SUCCESS;

Modified: MOAB/trunk/MBCore.hpp
===================================================================
--- MOAB/trunk/MBCore.hpp	2009-02-04 19:17:18 UTC (rev 2628)
+++ MOAB/trunk/MBCore.hpp	2009-02-04 19:18:04 UTC (rev 2629)
@@ -154,7 +154,7 @@
 
   //! set the coordinate information for this handle if it is of type Vertex
   //! otherwise, return an error
-  virtual MBErrorCode  set_coords(MBEntityHandle *entity_handles, 
+  virtual MBErrorCode  set_coords( const MBEntityHandle *entity_handles, 
                                    const int num_entities,
                                    const double *coords);
 

Modified: MOAB/trunk/MBInterface.hpp
===================================================================
--- MOAB/trunk/MBInterface.hpp	2009-02-04 19:17:18 UTC (rev 2628)
+++ MOAB/trunk/MBInterface.hpp	2009-02-04 19:18:04 UTC (rev 2629)
@@ -387,7 +387,7 @@
         double coords[3] = {0.234, -2.52, 12.023};
         set_coords( entity_handle, 1, coords ); \endcode 
     */
-  virtual MBErrorCode  set_coords(MBEntityHandle *entity_handles, 
+  virtual MBErrorCode  set_coords(const MBEntityHandle *entity_handles, 
                                   const int num_entities,
                                   const double *coords)=0;
 



More information about the moab-dev mailing list