mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mainwindow.cpp: fix a warning about parentheses
"warning: suggest parentheses around assignment used as truth value [-Wparentheses]" I think 4.8.2 is confused about this one, but we suppress it regardless by separating into two assignments. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
16dd110a09
commit
90982a84fa
1 changed files with 2 additions and 1 deletions
|
@ -1246,7 +1246,8 @@ void MainWindow::on_profNdl_tts_clicked(bool triggered)
|
|||
}
|
||||
void MainWindow::turnOffNdlTts()
|
||||
{
|
||||
const bool triggered = prefs.calcndltts = false;
|
||||
const bool triggered = false;
|
||||
prefs.calcndltts = triggered;
|
||||
TOOLBOX_PREF_PROFILE(calcndltts);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue