mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025324: Make OCCT collections copy-constructible
Since TCollection package is going to be obsolete we change only classes that are currently needed to have copy constructor.
This commit is contained in:
@@ -70,11 +70,8 @@ is
|
||||
-- assignment operator (operator=).
|
||||
---C++: inline
|
||||
|
||||
Create(Other : Sequence) returns Sequence from TCollection
|
||||
Create(Other : Sequence) returns Sequence from TCollection;
|
||||
---Purpose: Creation by copy of existing Sequence.
|
||||
-- Warning: This constructor prints a warning message.
|
||||
-- We recommand to use the operator =.
|
||||
is private;
|
||||
|
||||
Clear(me : in out);
|
||||
---Purpose: Removes all element(s) of the sequence <me>
|
||||
|
@@ -23,6 +23,16 @@ inline TCollection_Sequence::TCollection_Sequence()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Copy constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline TCollection_Sequence::TCollection_Sequence(const TCollection_Sequence& theOther)
|
||||
{
|
||||
Assign(theOther);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Append
|
||||
//purpose : Appends a Sequence to myself
|
||||
|
Reference in New Issue
Block a user