From 1ef03a1c7043d617885d319b0803d69907c3c9cc Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 28 Feb 2022 13:24:26 +0100 Subject: Pass actions and trees in analysis result as shared pointer ... to avoid unnecessary copying and moving of larger objects. --- test/buildtool/common/action_description.test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/buildtool/common/action_description.test.cpp') diff --git a/test/buildtool/common/action_description.test.cpp b/test/buildtool/common/action_description.test.cpp index ac7367e1..ee5c00da 100644 --- a/test/buildtool/common/action_description.test.cpp +++ b/test/buildtool/common/action_description.test.cpp @@ -20,7 +20,7 @@ TEST_CASE("From JSON", "[action_description]") { SECTION("Parse full action") { auto description = ActionDescription::FromJson("id", json); REQUIRE(description); - CHECK(description->ToJson() == json); + CHECK((*description)->ToJson() == json); } SECTION("Parse action without optional input") { -- cgit v1.2.3