Skip to content

Commit f5686ff

Browse files
authored
Simplify destructor by removing null check #7650
1 parent a46cdbb commit f5686ff

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/ifcgeom/Converter.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ ifcopenshell::geometry::Converter::Converter(std::unique_ptr<ifcopenshell::geome
1212
settings_ = mapping_->settings();
1313
}
1414

15-
ifcopenshell::geometry::Converter::~Converter()
16-
{
17-
if (mapping_ != nullptr) {
18-
delete mapping_;
19-
}
15+
ifcopenshell::geometry::Converter::~Converter() {
16+
delete mapping_;
2017
}
2118

2219
namespace {

0 commit comments

Comments
 (0)