Skip to content

Commit

Permalink
Add some missing constness.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 25, 2024
1 parent 80bdda7 commit 1872abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ namespace
void setLightPalette()
{
QPalette palette;
QColor color(240, 240, 240);
QColor altColor(225, 225, 225);
const QColor color(240, 240, 240);
const QColor altColor(225, 225, 225);
palette.setColor(QPalette::Window, color);
palette.setColor(QPalette::Button, color);
palette.setColor(QPalette::Window, color);
Expand Down Expand Up @@ -44,7 +44,7 @@ void setLightPalette()

int main(int argc, char* argv[])
{
QApplication a(argc, argv);
const QApplication a(argc, argv);

QStyle* style = QStyleFactory::create("Fusion");
QApplication::setStyle(style);
Expand Down

0 comments on commit 1872abf

Please sign in to comment.