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; }