mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Avoid repeating the return type
This commit is contained in:
parent
9959a901fe
commit
8c944bd4e1
34 changed files with 123 additions and 123 deletions
|
@ -101,7 +101,7 @@ namespace
|
|||
QSize CheckBoxIconHelper::sizeHint() const
|
||||
{
|
||||
const int dim = QCheckBox::sizeHint().height();
|
||||
return QSize(dim, dim);
|
||||
return {dim, dim};
|
||||
}
|
||||
|
||||
void CheckBoxIconHelper::initStyleOption(QStyleOptionButton *opt) const
|
||||
|
@ -812,7 +812,7 @@ QStringList TransferListWidget::askTagsForSelection(const QString &dialogTitle)
|
|||
const QString tagsInput = AutoExpandableDialog::getText(
|
||||
this, dialogTitle, tr("Comma-separated tags:"), QLineEdit::Normal, "", &ok).trimmed();
|
||||
if (!ok || tagsInput.isEmpty())
|
||||
return QStringList();
|
||||
return {};
|
||||
tags = tagsInput.split(',', QString::SkipEmptyParts);
|
||||
for (QString &tag : tags) {
|
||||
tag = tag.trimmed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue