diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-02-25 16:42:15 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-02-28 21:36:51 +0100 |
commit | 2090b770daa87039f27c15aad6bdbc42e5fe702c (patch) | |
tree | eebd7d2a95950dbdd9c612f5eb45d778d3423723 /src/corelib/io/qprocess.h | |
parent | 7e5f38aec667d3fd71efc0d2c586a08c3a87574c (diff) | |
download | qtbase-2090b770daa87039f27c15aad6bdbc42e5fe702c.tar.gz |
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 <lars.knoll@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/io/qprocess.h')
-rw-r--r-- | src/corelib/io/qprocess.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qprocess.h b/src/corelib/io/qprocess.h index 504b4a8061..8c55080252 100644 --- a/src/corelib/io/qprocess.h +++ b/src/corelib/io/qprocess.h @@ -282,7 +282,7 @@ public: static QString nullDevice(); - static QStringList splitCommand(const QString &command); + static QStringList splitCommand(QStringView command); public Q_SLOTS: void terminate(); |