mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: avoid uninitialized members
This is basically to make Coverity happy. Coverity CID 208300 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
db434702be
commit
e8719413a7
1 changed files with 5 additions and 5 deletions
|
@ -179,16 +179,16 @@ DCDeviceData *DCDeviceData::m_instance = NULL;
|
|||
|
||||
DCDeviceData::DCDeviceData(QObject *parent) : QObject(parent)
|
||||
{
|
||||
if (m_instance) {
|
||||
qDebug() << "already have an instance of DCDevieData";
|
||||
return;
|
||||
}
|
||||
m_instance = this;
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.trip = nullptr;
|
||||
data.download_table = nullptr;
|
||||
data.diveid = 0;
|
||||
data.deviceid = 0;
|
||||
if (m_instance) {
|
||||
qDebug() << "already have an instance of DCDevieData";
|
||||
return;
|
||||
}
|
||||
m_instance = this;
|
||||
}
|
||||
|
||||
DCDeviceData *DCDeviceData::instance()
|
||||
|
|
Loading…
Add table
Reference in a new issue