mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -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
|
@ -96,7 +96,7 @@ QSize Utils::Gui::smallIconSize(const QWidget *widget)
|
|||
// Get DPI scaled icon size (device-dependent), see QT source
|
||||
// under a 1080p screen is usually 16x16
|
||||
const int s = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize, nullptr, widget);
|
||||
return QSize(s, s);
|
||||
return {s, s};
|
||||
}
|
||||
|
||||
QSize Utils::Gui::mediumIconSize(const QWidget *widget)
|
||||
|
@ -110,5 +110,5 @@ QSize Utils::Gui::largeIconSize(const QWidget *widget)
|
|||
// Get DPI scaled icon size (device-dependent), see QT source
|
||||
// under a 1080p screen is usually 32x32
|
||||
const int s = QApplication::style()->pixelMetric(QStyle::PM_LargeIconSize, nullptr, widget);
|
||||
return QSize(s, s);
|
||||
return {s, s};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue