Add some virtual destructors

This commit is contained in:
Ian McInerney 2020-04-24 18:24:39 +01:00
parent 18150e5769
commit 3f9b3e505e
2 changed files with 6 additions and 2 deletions

View File

@ -37,7 +37,9 @@ class DRC_COURTYARD_OVERLAP : public DRC_TEST_PROVIDER
public:
DRC_COURTYARD_OVERLAP( MARKER_HANDLER aMarkerHandler );
virtual ~DRC_COURTYARD_OVERLAP() {};
bool RunDRC( BOARD& aBoard ) const override;
};
#endif // DRC_COURTYARD_OVERLAP__H
#endif // DRC_COURTYARD_OVERLAP__H

View File

@ -52,6 +52,8 @@ public:
*/
virtual bool RunDRC( BOARD& aBoard ) const = 0;
virtual ~DRC_TEST_PROVIDER() {}
protected:
DRC_TEST_PROVIDER( MARKER_HANDLER aMarkerHandler ) :
m_marker_handler( std::move( aMarkerHandler ) )
@ -278,4 +280,4 @@ public:
};
#endif // DRC_PROVIDER__H
#endif // DRC_PROVIDER__H