Skip to content

Commit

Permalink
bool to const bool, uniform init
Browse files Browse the repository at this point in the history
  • Loading branch information
jgehrig authored Mar 2, 2024
1 parent 307ab43 commit e86ae46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ Shell* MainWindow::shell()
void MainWindow::saveWindowGeometry()
{
QSettings settings("nvim-qt", "window-geometry");
bool restore_window_geometry = settings.value("restore_window_geometry", true).toBool();
const bool restore_window_geometry{ settings.value("restore_window_geometry", true).toBool() };
if (!restore_window_geometry) {
return;
}
Expand Down

0 comments on commit e86ae46

Please sign in to comment.