mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 05:00:53 +00:00
use assignment operator
This commit is contained in:
@@ -872,7 +872,7 @@ namespace {
|
|||||||
template <typename T, typename U>
|
template <typename T, typename U>
|
||||||
void push_back_to_maybe_optional(boost::optional<boost::shared_ptr<T>>& t, U* u) {
|
void push_back_to_maybe_optional(boost::optional<boost::shared_ptr<T>>& t, U* u) {
|
||||||
if (!t) {
|
if (!t) {
|
||||||
t->emplace(new T);
|
t = boost::shared_ptr<T>(new T);
|
||||||
}
|
}
|
||||||
(*t)->push(u);
|
(*t)->push(u);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user