Explictly copy TOOL_EVENT_LIST in the copy constructor

This commit is contained in:
Ian McInerney 2021-06-06 18:25:17 +01:00
parent 0d7e48d5b1
commit 425331b655
1 changed files with 8 additions and 2 deletions

View File

@ -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()