Salome HOME
Remove compilation warning
authorptv <ptv@opencascade.com>
Mon, 1 Dec 2008 12:13:47 +0000 (12:13 +0000)
committerptv <ptv@opencascade.com>
Mon, 1 Dec 2008 12:13:47 +0000 (12:13 +0000)
src/SMESH_I/SMESH_PythonDump.hxx

index e801d44affd4a5e0bc8b786eae41f93ebf9b34ab..e310992a20f31283ea8f3078f9776592a69eeb66 100644 (file)
@@ -59,8 +59,8 @@ public:
    * \brief Return the name of the python file wrapping IDL API
     * \retval TCollection_AsciiString - The file name
    */
-  static char* SmeshpyName() { return "smesh"; }
-  static char* GenName() { return "smesh.smesh"; }
+  static const char* SmeshpyName() { return "smesh"; }
+  static const char* GenName() { return "smesh.smesh"; }
 };
 
 namespace SMESH
@@ -150,8 +150,8 @@ namespace SMESH
     TPythonDump&
     operator<<(const SMESH::ListOfGroups * theList);
 
-    static char* SMESHGenName() { return "smeshgen"; }
-    static char* MeshEditorName() { return "mesh_editor"; }
+    static const char* SMESHGenName() { return "smeshgen"; }
+    static const char* MeshEditorName() { return "mesh_editor"; }
 
     /*!
      * \brief Return marker of long string literal beginning