Add const to many vars and arguments

Also remove const in declarations' arguments that are passed by value
This commit is contained in:
thalieht 2019-02-09 17:40:14 +02:00
parent fc534e88a3
commit ca3ce87e06
21 changed files with 217 additions and 219 deletions

View file

@ -466,8 +466,8 @@ QIcon getErrorIcon()
bool isDarkTheme()
{
QPalette pal = QApplication::palette();
const QPalette pal = QApplication::palette();
// QPalette::Base is used for the background of the Treeview
QColor color = pal.color(QPalette::Active, QPalette::Base);
const QColor color = pal.color(QPalette::Active, QPalette::Base);
return (color.lightness() < 127);
}