PropertyBasedTableModel.cpp   PropertyBasedTableModel.cpp 
skipping to change at line 30 skipping to change at line 30
#include <QDebug> #include <QDebug>
/* ********************************************************************* */ /* ********************************************************************* */
#if 0 #if 0
#pragma mark - #pragma mark -
#pragma mark instance Methods #pragma mark instance Methods
#endif #endif
/* ********************************************************************* */ /* ********************************************************************* */
PropertyBasedTableModel::PropertyBasedTableModel(QObject *parent) PropertyBasedTableModel::PropertyBasedTableModel(QObject *parent)
: QAbstractTableModel(parent) : QAbstractTableModel(parent)
, content(NULL) , content(Q_NULLPTR)
, modelObject(NULL) , modelObject(Q_NULLPTR)
{ {
} }
PropertyBasedTableModel::~PropertyBasedTableModel() PropertyBasedTableModel::~PropertyBasedTableModel()
{ {
delete modelObject; delete modelObject;
modelObject = NULL; modelObject = Q_NULLPTR;
} }
void PropertyBasedTableModel::init(QList<QObject *>* content, QObject *mode l, QMap<int,QString> mappings) void PropertyBasedTableModel::init(QList<QObject *>* content, QObject *mode l, QMap<int,QString> mappings)
{ {
beginResetModel(); beginResetModel();
this->content = content; this->content = content;
this->modelObject = model; this->modelObject = model;
this->mappings = mappings; this->mappings = mappings;
endResetModel(); endResetModel();
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/