summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-21 13:11:08 -0700
committerPatrick Venture <venture@google.com>2018-10-30 08:28:31 -0700
commit1d00178a1ec507ccd1e0f957cfd992721448891d (patch)
tree68107eeb0cd1bb9b2a084699ee99ab21fd9fd934
parentf0f1ab9f94c58cdddae3c5036c1cbc6a95a7016d (diff)
downloadipmi-fru-parser-1d00178a1ec507ccd1e0f957cfd992721448891d.tar.gz
ipmi-fru-parser-1d00178a1ec507ccd1e0f957cfd992721448891d.zip
IPMIFruArea: use default destructor
Use default destructor now that there isn't a raw pointer. Change-Id: I3b28a99ca27a9e5dd15de9809e882cab02eedf75 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--fru_area.cpp7
-rw-r--r--fru_area.hpp4
2 files changed, 1 insertions, 10 deletions
diff --git a/fru_area.cpp b/fru_area.cpp
index 45d4008..389166c 100644
--- a/fru_area.cpp
+++ b/fru_area.cpp
@@ -63,10 +63,3 @@ void IPMIFruArea::updateDbusPaths(const char* bus, const char* path,
objectPath = path;
interfaceName = intf;
}
-
-//-------------------
-// Destructor
-//-------------------
-IPMIFruArea::~IPMIFruArea()
-{
-}
diff --git a/fru_area.hpp b/fru_area.hpp
index 5294be2..abfa083 100644
--- a/fru_area.hpp
+++ b/fru_area.hpp
@@ -15,14 +15,12 @@ class IPMIFruArea
{
public:
IPMIFruArea() = delete;
+ ~IPMIFruArea() = default;
// constructor
IPMIFruArea(const uint8_t fruID, const ipmi_fru_area_type type,
bool bmcOnlyFru = false);
- // Destructor
- virtual ~IPMIFruArea();
-
// Sets the present bit
inline void setPresent(const bool present)
{
OpenPOWER on IntegriCloud