From 2090b770daa87039f27c15aad6bdbc42e5fe702c Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Tue, 25 Feb 2020 16:42:15 +0100 Subject: Make QProcess::splitCommand accept QStringView, as per header review A static function that only parses the string to create the list, so no need for a QString overload. Change-Id: I1df297adb795095d6eec94ccfcad52498178a7b1 Reviewed-by: Lars Knoll Reviewed-by: Edward Welbourne --- src/corelib/io/qprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/io/qprocess.cpp') diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp index 40ef911894..df8b306a8d 100644 --- a/src/corelib/io/qprocess.cpp +++ b/src/corelib/io/qprocess.cpp @@ -2255,7 +2255,7 @@ void QProcessPrivate::start(QIODevice::OpenMode mode) Tokens with spaces can be surrounded by double quotes; three consecutive double quotes represent the quote character itself. */ -QStringList QProcess::splitCommand(const QString &command) +QStringList QProcess::splitCommand(QStringView command) { QStringList args; QString tmp; -- cgit v1.2.3