Change splitToViews() return type to QVector

This commit is contained in:
Chocobo1 2019-05-16 11:27:26 +08:00
parent 3d6dccc689
commit ff707ea5af
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
6 changed files with 18 additions and 15 deletions

View file

@ -43,6 +43,7 @@
#endif
#include "base/logger.h"
#include "base/utils/bytearray.h"
using namespace Utils::ForeignApps;
@ -61,7 +62,7 @@ namespace
// Software 'Anaconda' installs its own python interpreter
// and `python --version` returns a string like this:
// "Python 3.4.3 :: Anaconda 2.3.0 (64-bit)"
const QList<QByteArray> outputSplit = procOutput.split(' ');
const QVector<QByteArray> outputSplit = Utils::ByteArray::splitToViews(procOutput, " ", QString::SkipEmptyParts);
if (outputSplit.size() <= 1)
return false;