mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:43:24 +00:00
Fix some random compiler warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ed41d5a744
commit
9c90d6790a
3 changed files with 2 additions and 4 deletions
|
@ -1321,7 +1321,7 @@ void DivePlannerPointsModel::tanksUpdated()
|
|||
divedatapoint& p = divepoints[j];
|
||||
int o2 = oldGases.at(i).first;
|
||||
int he = oldGases.at(i).second;
|
||||
if (p.o2 == o2 && p.he == he ||
|
||||
if ((p.o2 == o2 && p.he == he) ||
|
||||
(is_air(p.o2, p.he) && (is_air(o2, he) || (o2 == 0 && he == 0)))) {
|
||||
p.o2 = gases.at(i).first;
|
||||
p.he = gases.at(i).second;
|
||||
|
|
|
@ -83,11 +83,11 @@ public slots:
|
|||
void enableEdition(EditMode newEditMode = NONE);
|
||||
|
||||
private:
|
||||
EditMode editMode;
|
||||
Ui::MainTab ui;
|
||||
WeightModel *weightModel;
|
||||
CylindersModel *cylindersModel;
|
||||
QMap<dive*, NotesBackup> notesBackup;
|
||||
EditMode editMode;
|
||||
|
||||
/* since the multi-edition of the equipment is fairly more
|
||||
* complex than a single item, because it involves a Qt
|
||||
|
|
|
@ -566,7 +566,6 @@ bool MainWindow::askSaveChanges()
|
|||
void MainWindow::initialUiSetup()
|
||||
{
|
||||
QSettings settings;
|
||||
int i;
|
||||
settings.beginGroup("MainWindow");
|
||||
QSize sz = settings.value("size", qApp->desktop()->size()).value<QSize>();
|
||||
resize(sz);
|
||||
|
@ -641,7 +640,6 @@ void MainWindow::readSettings()
|
|||
|
||||
void MainWindow::writeSettings()
|
||||
{
|
||||
int i;
|
||||
QSettings settings;
|
||||
|
||||
settings.beginGroup("MainWindow");
|
||||
|
|
Loading…
Add table
Reference in a new issue