Commit 2c1271b1 by Lionel

Removal of implicite use of PRMType constructor.

parent cd01998a
Pipeline #18648120 passed with stages
in 84 minutes 10 seconds
......@@ -912,8 +912,8 @@ namespace gum {
auto& elt = get(child);
if (PRMClassElement< GUM_SCALAR >::isAttribute(elt)) {
auto& attr = static_cast< PRMAttribute< GUM_SCALAR >& >(elt);
auto& old_type = slotchain->lastElt().type().variable();
auto& new_type = sc->lastElt().type().variable();
auto& old_type = slotchain->lastElt().type();
auto& new_type = sc->lastElt().type();
attr.swap(old_type, new_type);
} else {
GUM_ERROR(OperationNotAllowed, "unexpected ClassElement");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment