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:
Lubomir I. Ivanov 2014-06-10 00:05:59 +03:00 committed by Dirk Hohndel
parent 16dd110a09
commit 90982a84fa

View file

@ -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);
}