From 58225f43cee1d30f89bdb9ad18ed437046e7de91 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Fri, 2 Jul 2010 21:15:46 -0700 Subject: [PATCH] Provide virtual destructors for interface classes --- src/devices/spectrum/wifi-spectrum-value-helper.cc | 7 +++++++ src/devices/spectrum/wifi-spectrum-value-helper.h | 4 ++-- src/devices/uan/uan-phy.h | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/devices/spectrum/wifi-spectrum-value-helper.cc b/src/devices/spectrum/wifi-spectrum-value-helper.cc index e452a47dc..1768b6185 100644 --- a/src/devices/spectrum/wifi-spectrum-value-helper.cc +++ b/src/devices/spectrum/wifi-spectrum-value-helper.cc @@ -26,6 +26,13 @@ namespace ns3 { Ptr g_WifiSpectrumModel5Mhz; +WifiSpectrumValueHelper::~WifiSpectrumValueHelper () +{ +} + +WifiSpectrumValue5MhzFactory::~WifiSpectrumValue5MhzFactory () +{ +} class WifiSpectrumModel5MhzInitializer { diff --git a/src/devices/spectrum/wifi-spectrum-value-helper.h b/src/devices/spectrum/wifi-spectrum-value-helper.h index 67ce0af33..51cd0e4dd 100644 --- a/src/devices/spectrum/wifi-spectrum-value-helper.h +++ b/src/devices/spectrum/wifi-spectrum-value-helper.h @@ -35,7 +35,7 @@ namespace ns3 { class WifiSpectrumValueHelper { public: - + virtual ~WifiSpectrumValueHelper (); /* * * @param value the constant value @@ -78,7 +78,7 @@ public: class WifiSpectrumValue5MhzFactory { public: - + virtual ~WifiSpectrumValue5MhzFactory (); // inherited from WifiSpectrumValue virtual Ptr CreateConstant (double psd); virtual Ptr CreateTxPowerSpectralDensity (double txPower, uint32_t channel); diff --git a/src/devices/uan/uan-phy.h b/src/devices/uan/uan-phy.h index f0791d348..8e6bab756 100644 --- a/src/devices/uan/uan-phy.h +++ b/src/devices/uan/uan-phy.h @@ -109,6 +109,7 @@ public: class UanPhyListener { public: + virtual ~UanPhyListener () {} /** * \brief Function called when Phy object begins receiving packet */