From b845c0e1b0a1a2627ff3e120dd93effb16db6c95 Mon Sep 17 00:00:00 2001 From: Yannick Martin Date: Tue, 12 Sep 2023 18:03:32 +0200 Subject: [PATCH] Adapt #7786 to the new ConfigItem::CommitNewItems() --- lib/remote/apilistener-configsync.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/remote/apilistener-configsync.cpp b/lib/remote/apilistener-configsync.cpp index c1767bfc6b3..81c9deb0cdb 100644 --- a/lib/remote/apilistener-configsync.cpp +++ b/lib/remote/apilistener-configsync.cpp @@ -459,8 +459,7 @@ void ApiListener::SendRuntimeConfigObjects(const JsonRpcConnection::Ptr& aclient bool unresolved_dep = false; /* skip this type (for now) if there are unresolved load dependencies */ - for (const String& loadDep : type->GetLoadDependencies()) { - Type::Ptr pLoadDep = Type::GetByName(loadDep); + for (auto pLoadDep : type->GetLoadDependencies()) { if (types.find(pLoadDep) != types.end() && completed_types.find(pLoadDep) == completed_types.end()) { unresolved_dep = true; break;