From c0003c908d24e4494c1fb54c77417e5897e125ee Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 20 Jan 2022 17:36:28 +0100 Subject: ConsoleProcess: Uniform the common interface of QtcProcess This is a preliminary step before merging ConsoleProcess into QtcProcess. Rename command() to commandLine(). Return const references from commandLine() and from environment(). Change-Id: Iacbf48030d00f8dbba053ece70bd460924f96041 Reviewed-by: hjk --- src/plugins/python/pythonutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/python/pythonutils.cpp') diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp index 17304271a8..89e897b350 100644 --- a/src/plugins/python/pythonutils.cpp +++ b/src/plugins/python/pythonutils.cpp @@ -111,7 +111,7 @@ void openPythonRepl(QObject *parent, const FilePath &file, ReplType type) const FilePath pythonCommand = detectPython(file); process->setCommand({pythonCommand, args}); process->setWorkingDirectory(workingDir(file)); - const QString commandLine = process->command().toUserOutput(); + const QString commandLine = process->commandLine().toUserOutput(); QObject::connect(process, &ConsoleProcess::errorOccurred, process, -- cgit v1.2.1