mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Convert vars into refs to avoid copy construction from const refs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user