mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Give EDA_SHAPE a virtual destructor
EDA_SHAPE can be inherited from, so a virtual destructor is needed to ensure the destructors are called in order.
This commit is contained in:
parent
f744ddd11d
commit
1fccbdbd53
@ -69,7 +69,7 @@ public:
|
||||
// Do not create a copy constructor & operator=.
|
||||
// The ones generated by the compiler are adequate.
|
||||
|
||||
~EDA_SHAPE();
|
||||
virtual ~EDA_SHAPE();
|
||||
|
||||
void SwapShape( EDA_SHAPE* aImage );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user