diff options
Diffstat (limited to 'desktop-widgets/tagwidget.cpp')
-rw-r--r-- | desktop-widgets/tagwidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-widgets/tagwidget.cpp b/desktop-widgets/tagwidget.cpp index c8d017aad..6673b23ac 100644 --- a/desktop-widgets/tagwidget.cpp +++ b/desktop-widgets/tagwidget.cpp @@ -70,7 +70,8 @@ void TagWidget::highlight() { removeAllBlocks(); int lastPos = 0; - Q_FOREACH (const QString& s, text().split(QChar(','), QString::SkipEmptyParts)) { + const auto l = text().split(QChar(','), QString::SkipEmptyParts); + for (const QString &s: l) { QString trimmed = s.trimmed(); if (trimmed.isEmpty()) continue; |