kopia lustrzana https://github.com/jgromes/RadioLib
[PHY] Add a virtual destructor (#1557)
* Update PhysicalLayer.h Add a virtual destructor, so can use new + delete on inherited objects * Update PhysicalLayer.h deleted empty linespull/1560/head
rodzic
b91c6af112
commit
7fb07921bf
|
@ -229,6 +229,11 @@ class PhysicalLayer {
|
|||
*/
|
||||
PhysicalLayer();
|
||||
|
||||
/*!
|
||||
\brief Default destructor.
|
||||
*/
|
||||
virtual ~PhysicalLayer() = default;
|
||||
|
||||
// basic methods
|
||||
|
||||
#if defined(RADIOLIB_BUILD_ARDUINO)
|
||||
|
|
Ładowanie…
Reference in New Issue