mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
Simplify destructor by removing null check #7650
This commit is contained in:
@@ -12,11 +12,8 @@ ifcopenshell::geometry::Converter::Converter(std::unique_ptr<ifcopenshell::geome
|
|||||||
settings_ = mapping_->settings();
|
settings_ = mapping_->settings();
|
||||||
}
|
}
|
||||||
|
|
||||||
ifcopenshell::geometry::Converter::~Converter()
|
ifcopenshell::geometry::Converter::~Converter() {
|
||||||
{
|
delete mapping_;
|
||||||
if (mapping_ != nullptr) {
|
|
||||||
delete mapping_;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|||||||
Reference in New Issue
Block a user