diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-06-10 00:05:59 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-09 16:55:24 -0700 |
commit | 90982a84fa24176caf0110bfab98e43ec7505c3f (patch) | |
tree | eb6ea0518e743afc3ca8145939a2bb4ba6a75c14 /qt-ui | |
parent | 16dd110a09414e129364296c61228729c2b1c8ec (diff) | |
download | subsurface-90982a84fa24176caf0110bfab98e43ec7505c3f.tar.gz |
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>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |