forked from qt-creator/qt-creator
All: Use Utils::SkipEmptyParts
Task-number: QTCREATORBUG-24098 Change-Id: Iab45de9a9c17ddc39a0e343b1175d4f6cb94b098 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include <utils/filesystemwatcher.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QFont>
|
||||
@@ -647,7 +648,7 @@ bool BranchModel::branchIsMerged(const QModelIndex &idx)
|
||||
VcsOutputWindow::appendError(errorMessage);
|
||||
}
|
||||
|
||||
const QStringList lines = output.split('\n', QString::SkipEmptyParts);
|
||||
const QStringList lines = output.split('\n', Utils::SkipEmptyParts);
|
||||
for (const QString &l : lines) {
|
||||
QString currentBranch = l.mid(2); // remove first letters (those are either
|
||||
// " " or "* " depending on whether it is
|
||||
|
||||
Reference in New Issue
Block a user