From 90982a84fa24176caf0110bfab98e43ec7505c3f Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 10 Jun 2014 00:05:59 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 8f9478a6a..d758515e6 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -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); } -- cgit v1.2.3-70-g09d2