mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Address uninitialized member warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
85dfb88f51
commit
1ecc9b0cc0
19 changed files with 50 additions and 18 deletions
|
|
@ -4,7 +4,10 @@
|
|||
#include "graphicsview-common.h"
|
||||
#include "divelist.h"
|
||||
|
||||
DivePlotDataModel::DivePlotDataModel(QObject *parent) : QAbstractTableModel(parent), diveId(0)
|
||||
DivePlotDataModel::DivePlotDataModel(QObject *parent) :
|
||||
QAbstractTableModel(parent),
|
||||
diveId(0),
|
||||
dcNr(0)
|
||||
{
|
||||
memset(&pInfo, 0, sizeof(pInfo));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -350,7 +350,9 @@ int DiveItem::weight() const
|
|||
return tw.grams;
|
||||
}
|
||||
|
||||
DiveTripModel::DiveTripModel(QObject *parent) : TreeModel(parent)
|
||||
DiveTripModel::DiveTripModel(QObject *parent) :
|
||||
TreeModel(parent),
|
||||
currentLayout(TREE)
|
||||
{
|
||||
columns = COLUMNS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -292,7 +292,11 @@ void LocationFilterModel::repopulate()
|
|||
anyChecked = false;
|
||||
}
|
||||
|
||||
MultiFilterSortModel::MultiFilterSortModel(QObject *parent) : QSortFilterProxyModel(parent), justCleared(false), curr_dive_site(NULL)
|
||||
MultiFilterSortModel::MultiFilterSortModel(QObject *parent) :
|
||||
QSortFilterProxyModel(parent),
|
||||
justCleared(false),
|
||||
curr_dive_site(NULL),
|
||||
divesDisplayed(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
ProfilePrintModel::ProfilePrintModel(QObject *parent)
|
||||
{
|
||||
fontSize = 12.0;
|
||||
}
|
||||
|
||||
void ProfilePrintModel::setDive(struct dive *divePtr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue