]> OCCT Git - occt-copy.git/commitdiff
0031219: TObj_Object::SetName(const Standard_CString theName) should use conversion...
authorgka <gka@opencascade.com>
Mon, 9 Dec 2019 11:43:47 +0000 (14:43 +0300)
committerabv <abv@opencascade.com>
Mon, 4 May 2020 19:38:06 +0000 (22:38 +0300)
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.

src/TObj/TObj_Object.cxx

index 2d4dde0b4c8e4ea8b63fd6aeb0b1ee50a3e459b3..fb75fc194572947bc79590dd4124c5f2d5775190 100644 (file)
@@ -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 ) );
 }
 
 //=======================================================================