From 071e6dbd6f0c80158aac48b5c00f11cfa791e71b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Mar 2016 20:16:59 -0800 Subject: Silence warnings in mainwindow.cpp Signed-off-by: Dirk Hohndel --- desktop-widgets/mainwindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index a3d6c4333..5bb713b7c 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -250,7 +250,7 @@ MainWindow::MainWindow() : QMainWindow(), set_git_update_cb(&updateProgress); // Toolbar Connections related to the Profile Update - SettingsObjectWrapper *sWrapper = SettingsObjectWrapper::instance(); sWrapper->techDetails; + SettingsObjectWrapper *sWrapper = SettingsObjectWrapper::instance(); connect(ui.profCalcAllTissues, &QAction::triggered, sWrapper->techDetails, &TechnicalDetailsSettings::setCalcalltissues); connect(ui.profCalcCeiling, &QAction::triggered, sWrapper->techDetails, &TechnicalDetailsSettings::setCalcceiling); connect(ui.profDcCeiling, &QAction::triggered, sWrapper->techDetails, &TechnicalDetailsSettings::setDCceiling); @@ -1300,8 +1300,6 @@ void MainWindow::readSettings() { static bool firstRun = true; - SettingsObjectWrapper *settings = SettingsObjectWrapper::instance(); - QSettings s; //WARNING: Why those prefs are not on the prefs struct? s.beginGroup("DiveComputer"); default_dive_computer_vendor = getSetting(s, "dive_computer_vendor"); @@ -1853,7 +1851,6 @@ void MainWindow::editCurrentDive() void MainWindow::turnOffNdlTts() { - const bool triggered = false; SettingsObjectWrapper::instance()->techDetails->setCalcndltts(false); } -- cgit v1.2.3-70-g09d2