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:
@@ -30,6 +30,8 @@
|
||||
|
||||
#include <qmljs/parser/qmljsengine_p.h>
|
||||
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
namespace Todo {
|
||||
namespace Internal {
|
||||
|
||||
@@ -83,7 +85,7 @@ void QmlJsTodoItemsScanner::processDocument(QmlJS::Document::Ptr doc)
|
||||
|
||||
// Process every line
|
||||
// TODO: Do not create QStringList, just iterate through a string tracking line endings.
|
||||
QStringList commentLines = source.split('\n', QString::SkipEmptyParts);
|
||||
QStringList commentLines = source.split('\n', Utils::SkipEmptyParts);
|
||||
quint32 startLine = sourceLocation.startLine;
|
||||
for (int j = 0; j < commentLines.count(); ++j) {
|
||||
const QString &commentLine = commentLines.at(j);
|
||||
|
||||
Reference in New Issue
Block a user