mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Change splitToViews() return type to QVector
This commit is contained in:
parent
3d6dccc689
commit
ff707ea5af
6 changed files with 18 additions and 15 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue