From d6efab3c44e2b22e7776802fc36a703d494c0f86 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 26 Jun 2024 12:19:48 +0200 Subject: [PATCH] LLDB-DAP: Remove usage of "avoid" marked function Didn't notice the `toStringList` member function of `Environmen`. The code now is now also nicely indented. Change-Id: Id570ddc48e915d9090f9975d05761aa908311f0d Reviewed-by: hjk --- src/plugins/debugger/dap/lldbdapengine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/debugger/dap/lldbdapengine.cpp b/src/plugins/debugger/dap/lldbdapengine.cpp index 0dded62b776..d767ab723ae 100644 --- a/src/plugins/debugger/dap/lldbdapengine.cpp +++ b/src/plugins/debugger/dap/lldbdapengine.cpp @@ -152,8 +152,7 @@ void LldbDapEngine::handleDapInitialize() const QJsonArray commands = preRunCommands(); if (!isLocalAttachEngine()) { - const QJsonArray env = QJsonArray::fromStringList( - rp.inferior.environment.toDictionary().toStringList()); + const QJsonArray env = QJsonArray::fromStringList(rp.inferior.environment.toStringList()); const QJsonArray args = QJsonArray::fromStringList(rp.inferior.command.splitArguments()); QJsonObject launchJson{