[cig-commits] r18603 - in short/3D/PyLith/trunk/unittests/libtests: bc/data meshio/data

brad at geodynamics.org brad at geodynamics.org
Mon Jun 13 10:49:50 PDT 2011


Author: brad
Date: 2011-06-13 10:49:49 -0700 (Mon, 13 Jun 2011)
New Revision: 18603

Modified:
   short/3D/PyLith/trunk/unittests/libtests/bc/data/AbsorbingDampersData.hh
   short/3D/PyLith/trunk/unittests/libtests/bc/data/NeumannData.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterData.hh
Log:
Fix for deprecated constant string to char* warnings.

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/data/AbsorbingDampersData.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/AbsorbingDampersData.hh	2011-06-13 01:25:17 UTC (rev 18602)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/AbsorbingDampersData.hh	2011-06-13 17:49:49 UTC (rev 18603)
@@ -54,7 +54,7 @@
 
   /// @name Parameter information
   //@{
-  char* spatialDBFilename; ///< Filename for database of parameters.
+  const char* spatialDBFilename; ///< Filename for database of parameters.
   int id; ///< Identifier for boundary condition
   char* label; ///< Label for boundary condition
   //@}

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/data/NeumannData.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/NeumannData.hh	2011-06-13 01:25:17 UTC (rev 18602)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/NeumannData.hh	2011-06-13 17:49:49 UTC (rev 18603)
@@ -40,7 +40,7 @@
 // PUBLIC MEMBERS ///////////////////////////////////////////////////////
 public:
 
-  char* meshFilename; ///< Filename for input mesh.
+  const char* meshFilename; ///< Filename for input mesh.
 
   /// @name Quadrature information
   //@{
@@ -54,9 +54,9 @@
 
   /// @name Parameter information
   //@{
-  char* spatialDBFilename; ///< Filename of simple spatial database.
+  const char* spatialDBFilename; ///< Filename of simple spatial database.
   int id; ///< Boundary condition identifier
-  char* label; ///< Label for boundary condition group
+  const char* label; ///< Label for boundary condition group
   //@}
 
   /// @name Boundary mesh information

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterData.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterData.hh	2011-06-13 01:25:17 UTC (rev 18602)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterData.hh	2011-06-13 17:49:49 UTC (rev 18603)
@@ -44,7 +44,7 @@
 public:
 
   struct FieldStruct {
-    char* name; ///< Name of field
+    const char* name; ///< Name of field
     topology::FieldBase::VectorFieldEnum field_type; ///< Type of field.
     int fiber_dim; ///< Fiber dimension for field.
   }; // FieldStruct



More information about the CIG-COMMITS mailing list