1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0028134: TDataStd_Name attribute gets null ID.

'myID' field is initialized in constructor now.
This commit is contained in:
szy 2016-11-21 14:14:03 +03:00 committed by apn
parent 41aa3c3d5d
commit 5299b92ba1
4 changed files with 7 additions and 4 deletions

View File

@ -28,7 +28,8 @@ IMPLEMENT_STANDARD_RTTIEXT(TDataStd_AsciiString,TDF_Attribute)
//function : TDataStd_AsciiString
//purpose :
//=======================================================================
TDataStd_AsciiString::TDataStd_AsciiString()
TDataStd_AsciiString::TDataStd_AsciiString():
myID (GetID())
{
myString.Clear();
}

View File

@ -78,7 +78,7 @@ Handle(TDataStd_Integer) TDataStd_Integer::Set (const TDF_Label& L, const Sta
//=======================================================================
TDataStd_Integer::TDataStd_Integer ()
: myValue (-1)
: myValue (-1), myID (GetID())
{ }

View File

@ -80,7 +80,8 @@ Handle(TDataStd_Name) TDataStd_Name::Set (const TDF_Label& L, const Standard_
//purpose : Empty Constructor
//=======================================================================
TDataStd_Name::TDataStd_Name () { }
TDataStd_Name::TDataStd_Name (): myID (GetID())
{ }
//=======================================================================
//function : Set

View File

@ -80,7 +80,8 @@ Handle(TDataStd_Real) TDataStd_Real::Set (const TDF_Label& L, const Standard_
TDataStd_Real::TDataStd_Real ()
: myValue (RealFirst()),
myDimension (TDataStd_SCALAR)
myDimension (TDataStd_SCALAR),
myID (GetID())
{}