mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Combine qAsConst() with copyAsConst() to asConst()
This commit is contained in:
@@ -98,7 +98,7 @@ void LogListWidget::copySelection()
|
||||
{
|
||||
static const QRegularExpression htmlTag("<[^>]+>");
|
||||
QStringList strings;
|
||||
for (QListWidgetItem* it : copyAsConst(selectedItems()))
|
||||
for (QListWidgetItem* it : asConst(selectedItems()))
|
||||
strings << static_cast<QLabel*>(itemWidget(it))->text().remove(htmlTag);
|
||||
|
||||
QApplication::clipboard()->setText(strings.join('\n'));
|
||||
|
||||
Reference in New Issue
Block a user