mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Explictly copy TOOL_EVENT_LIST in the copy constructor
This commit is contained in:
parent
0d7e48d5b1
commit
425331b655
@ -578,8 +578,14 @@ public:
|
||||
m_events.push_back( aSingleEvent );
|
||||
}
|
||||
|
||||
///<y Copy an existing TOOL_EVENT_LIST
|
||||
TOOL_EVENT_LIST( const TOOL_EVENT_LIST& aEventList ) = default;
|
||||
///< Copy an existing TOOL_EVENT_LIST
|
||||
TOOL_EVENT_LIST( const TOOL_EVENT_LIST& aEventList )
|
||||
{
|
||||
m_events.clear();
|
||||
|
||||
for( const TOOL_EVENT& event : aEventList.m_events )
|
||||
m_events.push_back( event );
|
||||
}
|
||||
|
||||
/**
|
||||
* Function Format()
|
||||
|
Loading…
x
Reference in New Issue
Block a user