mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Convert vars into refs to avoid copy construction from const refs
This commit is contained in:
parent
400792d18e
commit
92a290895b
3 changed files with 4 additions and 4 deletions
|
@ -468,6 +468,6 @@ bool isDarkTheme()
|
|||
{
|
||||
const QPalette pal = QApplication::palette();
|
||||
// QPalette::Base is used for the background of the Treeview
|
||||
const QColor color = pal.color(QPalette::Active, QPalette::Base);
|
||||
const QColor &color = pal.color(QPalette::Active, QPalette::Base);
|
||||
return (color.lightness() < 127);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue