]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Dump Python. Change because now GetAuxData() returns TCollection_AsciiString
authoreap <eap@opencascade.com>
Fri, 18 Mar 2005 13:46:50 +0000 (13:46 +0000)
committereap <eap@opencascade.com>
Fri, 18 Mar 2005 13:46:50 +0000 (13:46 +0000)
src/GEOM_I/GEOM_Object_i.cc

index 2af09b20943192aafa6de5fb5d537faa4f236c5d..2bc8a04541d405e7188d3e08c904ea5d53a93c2b 100644 (file)
@@ -129,8 +129,8 @@ void GEOM_Object_i::SetStudyEntry(const char* theEntry)
 //=============================================================================
 char* GEOM_Object_i::GetStudyEntry()
 {
-  char* anEntry = _impl->GetAuxData();
-  if(anEntry) return strdup(anEntry);
+  TCollection_AsciiString anEntry = _impl->GetAuxData();
+  if(!anEntry.IsEmpty()) return strdup(anEntry.ToCString());
   return strdup("");
 }