From 2ff58aa7833211c99431714c12b4a03552b01334 Mon Sep 17 00:00:00 2001 From: Josip Mrden Date: Thu, 21 Mar 2024 15:40:54 +0100 Subject: [PATCH] Add value as pointer --- include/mgp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mgp.hpp b/include/mgp.hpp index 5f36c5e58..eb5c4f0a4 100644 --- a/include/mgp.hpp +++ b/include/mgp.hpp @@ -4401,7 +4401,7 @@ inline ExecutionResult::ExecutionResult(mgp_execution_result *result, mgp_graph inline ExecutionHeaders ExecutionResult::Headers() const { return mgp::fetch_execution_headers(result_); }; inline std::optional ExecutionResult::PullOne() const { - auto value = mgp::MemHandlerCallback(pull_one, result_, graph_); + auto *value = mgp::MemHandlerCallback(pull_one, result_, graph_); if (!value) { return std::nullopt; }