Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccbdd44
)
Correct string allocation
author
jfa
<jfa@opencascade.com>
Wed, 23 Nov 2005 15:38:24 +0000
(15:38 +0000)
committer
jfa
<jfa@opencascade.com>
Wed, 23 Nov 2005 15:38:24 +0000
(15:38 +0000)
src/GEOM_I/GEOM_Object_i.cc
patch
|
blob
|
history
diff --git
a/src/GEOM_I/GEOM_Object_i.cc
b/src/GEOM_I/GEOM_Object_i.cc
index ee5eb1b720a99a2def4668a908f9865b06c45b36..158d088dca80c3ce85042978a32baf90b0806d4b 100644
(file)
--- a/
src/GEOM_I/GEOM_Object_i.cc
+++ b/
src/GEOM_I/GEOM_Object_i.cc
@@
-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
str
dup(anEntry.ToCString());
- return
str
dup("");
+ if(!anEntry.IsEmpty()) return
CORBA::string_
dup(anEntry.ToCString());
+ return
CORBA::string_
dup("");
}