From b62b328f1d8d860af195c3423280d443c9d372e6 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 18 Apr 2024 12:11:25 +0200 Subject: [PATCH] Address minor unaddressed consequences of merge --- src/ifcparse/IfcWrite.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/ifcparse/IfcWrite.cpp b/src/ifcparse/IfcWrite.cpp index bd4e2e99d4..afa37c4dbc 100644 --- a/src/ifcparse/IfcWrite.cpp +++ b/src/ifcparse/IfcWrite.cpp @@ -316,27 +316,19 @@ void IfcWriteArgument::set(IfcUtil::IfcBaseInterface* const& value) { } } -void IfcWriteArgument::set(IfcUtil::IfcBaseInterface*const& v) { - if (v) { - container = v->as(); - } else { - container = boost::blank(); - } -} - // Overloads to raise exceptions on non-finite values void IfcWriteArgument::set(const double& v) { if (!std::isfinite(v)) { throw IfcParse::IfcException("Only finite values are allowed"); } - container = v; + container_ = v; } void IfcWriteArgument::set(const std::vector& v) { if (std::any_of(v.begin(), v.end(), [](double v) {return !std::isfinite(v); })) { throw IfcParse::IfcException("Only finite values are allowed"); } - container = v; + container_ = v; } void IfcWriteArgument::set(const std::vector< std::vector >& v) { @@ -345,5 +337,5 @@ void IfcWriteArgument::set(const std::vector< std::vector >& v) { })) { throw IfcParse::IfcException("Only finite values are allowed"); } - container = v; + container_ = v; }