*/
//============================================================================
char* SALOMEDS_SObject_i::GetName() {
- CORBA::String_var aStr;
+ CORBA::String_var aStr = CORBA::string_dup( "" );
Handle(TDataStd_Name) aName;
if (_lab.FindAttribute(TDataStd_Name::GetID(), aName)) {
aStr = CORBA::string_dup(TCollection_AsciiString(aName->Get()).ToCString());
*/
//============================================================================
char* SALOMEDS_SObject_i::GetComment() {
- CORBA::String_var aStr;
+ CORBA::String_var aStr = CORBA::string_dup( "" );
Handle(TDataStd_Comment) aComment;
if (_lab.FindAttribute(TDataStd_Comment::GetID(), aComment)) {
aStr = CORBA::string_dup(TCollection_AsciiString(aComment->Get()).ToCString());
*/
//============================================================================
char* SALOMEDS_SObject_i::GetIOR() {
- CORBA::String_var aStr;
+ CORBA::String_var aStr = CORBA::string_dup( "" );
Handle(SALOMEDS_IORAttribute) anIOR;
if (_lab.FindAttribute(SALOMEDS_IORAttribute::GetID(), anIOR)) {
aStr = CORBA::string_dup(TCollection_AsciiString(anIOR->Get()).ToCString());