From 38f0104d108ebc0c661ce7914c6f3ee9b29b8d3a Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Sun, 9 Feb 2014 18:47:56 +0100 Subject: DivePlotDataModel improvements * Add missing improvements::diveId variable member to the initialize list. * Cleanup DivePlotDataModel::pInfo structure instead only one member. Signed-off-by: Boris Barbulovski Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveplotdatamodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui/profile') diff --git a/qt-ui/profile/diveplotdatamodel.cpp b/qt-ui/profile/diveplotdatamodel.cpp index 31941fef7..cb3b07c50 100644 --- a/qt-ui/profile/diveplotdatamodel.cpp +++ b/qt-ui/profile/diveplotdatamodel.cpp @@ -8,9 +8,9 @@ #include "divelist.h" #include -DivePlotDataModel::DivePlotDataModel(QObject* parent): QAbstractTableModel(parent) +DivePlotDataModel::DivePlotDataModel(QObject* parent) : QAbstractTableModel(parent) , diveId(0) { - pInfo.nr = 0; + memset(&pInfo, 0, sizeof(pInfo)); } int DivePlotDataModel::columnCount(const QModelIndex& parent) const -- cgit v1.2.3-70-g09d2