From: gka Date: Mon, 9 Dec 2019 11:43:47 +0000 (+0300) Subject: 0031219: TObj_Object::SetName(const Standard_CString theName) should use conversion... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=ac2e76314d4271b9567ae23850d6e79d5eb71f59;p=occt-copy.git 0031219: TObj_Object::SetName(const Standard_CString theName) should use conversion to TCollection_HAsciiString In the method TObj_Object::TObj_Object::SetName(const Standard_CString theName) conversion to the HAsciiString was used instead of the conversion to the TCollection_HExtendedString. --- diff --git a/src/TObj/TObj_Object.cxx b/src/TObj/TObj_Object.cxx index 2d4dde0b4c..fb75fc1945 100644 --- a/src/TObj/TObj_Object.cxx +++ b/src/TObj/TObj_Object.cxx @@ -299,7 +299,7 @@ Standard_Boolean TObj_Object::SetName(const Handle(TCollection_HAsciiString)& th Standard_Boolean TObj_Object::SetName(const Standard_CString theName) const { - return SetName ( new TCollection_HExtendedString ( theName ) ); + return SetName ( new TCollection_HAsciiString ( theName ) ); } //=======================================================================