]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correct string allocation
authorjfa <jfa@opencascade.com>
Wed, 23 Nov 2005 15:38:24 +0000 (15:38 +0000)
committerjfa <jfa@opencascade.com>
Wed, 23 Nov 2005 15:38:24 +0000 (15:38 +0000)
src/GEOM_I/GEOM_Object_i.cc

index ee5eb1b720a99a2def4668a908f9865b06c45b36..158d088dca80c3ce85042978a32baf90b0806d4b 100644 (file)
@@ -134,8 +134,8 @@ void GEOM_Object_i::SetStudyEntry(const char* theEntry)
 char* GEOM_Object_i::GetStudyEntry()
 {
   TCollection_AsciiString anEntry = _impl->GetAuxData();
-  if(!anEntry.IsEmpty()) return strdup(anEntry.ToCString());
-  return strdup("");
+  if(!anEntry.IsEmpty()) return CORBA::string_dup(anEntry.ToCString());
+  return CORBA::string_dup("");
 }