From 82abc095fa39cbb23663c40f022bb9c3cff7dfe0 Mon Sep 17 00:00:00 2001 From: Jan Orend <56254096+3dJan@users.noreply.github.com> Date: Thu, 5 Dec 2024 08:32:01 +0100 Subject: [PATCH] Modifying test to pass shared_ptr directly without storing it. --- Tests/CPP_Bindings/Source/Volumetric.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tests/CPP_Bindings/Source/Volumetric.cpp b/Tests/CPP_Bindings/Source/Volumetric.cpp index 9c5291ce..b4b80a1a 100644 --- a/Tests/CPP_Bindings/Source/Volumetric.cpp +++ b/Tests/CPP_Bindings/Source/Volumetric.cpp @@ -64,9 +64,7 @@ namespace Lib3MF auto decomposePosOutputY = decomposePos->GetOutputY(); gyroidFunction->AddLink(decomposePosOutputY, composeYZXInputY); - auto composeYZXInputZ = composeYZX->GetInputZ(); - auto decomposePosOutputX = decomposePos->GetOutputX(); - gyroidFunction->AddLink(decomposePosOutputX, composeYZXInputZ); + gyroidFunction->AddLink(decomposePos->GetOutputX(), composeYZX->GetInputZ()); // Add the nodes and links for the gyroid // (dot(sin(pos), cos(composeYZX))