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:
parent
41aa3c3d5d
commit
5299b92ba1
@ -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();
|
||||
}
|
||||
|
@ -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())
|
||||
{ }
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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())
|
||||
{}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user