Salome HOME
Fix for bug IPAL19437.
[modules/smesh.git] / src / SMESH_I / SMESH_Algo_i.cxx
index 17995f4b7ddd5a1090987e424e963551b2913aa9..cfa8dc55548891716cd69b2630648a18001b5959 100644 (file)
@@ -17,7 +17,7 @@
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
@@ -26,7 +26,6 @@
 //  Module : SMESH
 //  $Header$
 
-using namespace std;
 #include "SMESH_Algo_i.hxx"
 #include "SMESH_Algo.hxx"
 
@@ -35,6 +34,8 @@ using namespace std;
 #include <string>
 #include <vector>
 
+using namespace std;
+
 //=============================================================================
 /*!
  *  SMESH_Algo_i::SMESH_Algo_i
@@ -79,7 +80,7 @@ SMESH::ListOfHypothesisName* SMESH_Algo_i::GetCompatibleHypothesis()
   int nbHyp = hypList.size();
   listOfHypothesis->length( nbHyp );
   for ( int i = 0; i < nbHyp; i++ ) {
-    listOfHypothesis[ i ] = strdup( hypList[ i ].c_str() );
+    listOfHypothesis[ i ] = CORBA::string_dup( hypList[ i ].c_str() );
   }
   return listOfHypothesis._retn();
 }