From 0db94857a5dd1d7b1880f9f06dd2993b5d24c5e6 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 25 Aug 2022 11:59:17 +0200 Subject: [PATCH] Remove temporary object (sonar). --- src/mc/api/RemoteApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mc/api/RemoteApp.cpp b/src/mc/api/RemoteApp.cpp index 87ac817688..d7c1037db8 100644 --- a/src/mc/api/RemoteApp.cpp +++ b/src/mc/api/RemoteApp.cpp @@ -171,7 +171,7 @@ void RemoteApp::get_actors_status(std::map& whereto) const whereto.clear(); for (auto const& actor : status) - whereto.try_emplace(actor.aid, ActorState(actor.aid, actor.enabled, actor.max_considered)); + whereto.try_emplace(actor.aid, actor.aid, actor.enabled, actor.max_considered); } void RemoteApp::check_deadlock() const -- 2.20.1