Skip to content

Commit 7c51faa

Browse files
committed
cwe-mapper: use defaulted destructors
1 parent 817e3a2 commit 7c51faa

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/lib/cwe-mapper.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ CweMap::CweMap():
4848
{
4949
}
5050

51-
CweMap::~CweMap()
52-
{
53-
}
54-
5551
bool CweMap::empty() const
5652
{
5753
return d->mapByChk.empty();
@@ -159,10 +155,6 @@ CweMapDecorator::CweMapDecorator(AbstractWriter *writer, bool silent):
159155
d->cweMap.setSilent(silent);
160156
}
161157

162-
CweMapDecorator::~CweMapDecorator()
163-
{
164-
}
165-
166158
void CweMapDecorator::handleDef(const Defect &orig)
167159
{
168160
if (d->cweMap.empty()) {

src/lib/cwe-mapper.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class CweMap: public AbstractCsvParser {
2929
public:
3030
CweMap();
31-
~CweMap() override;
31+
~CweMap() override = default;
3232

3333
bool assignCwe(Defect &def) const;
3434
bool empty() const;
@@ -45,7 +45,7 @@ class CweMapDecorator: public GenericAbstractFilter {
4545
public:
4646
/// @param writer the instance will be deleted on destruction
4747
CweMapDecorator(AbstractWriter *writer, bool silent);
48-
~CweMapDecorator() override;
48+
~CweMapDecorator() override = default;
4949

5050
void handleDef(const Defect &def) override;
5151

0 commit comments

Comments
 (0)