Commit 2ddcb64d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify pointer

parent ed9159b8
Pipeline #56197 passed with stage
in 42 minutes and 28 seconds
......@@ -20,10 +20,10 @@ static const char myMimePartTreeViewConfigGroupName[] = "MimePartTree";
}
MimePartTreeView::MimePartTreeView(QWidget *parent)
: QTreeView(parent)
, mMimePartModel(new MimeTreeModel(this))
{
setObjectName(QStringLiteral("mMimePartTree"));
mMimePartModel = new MimeTreeModel(this);
setModel(mMimePartModel);
setSelectionMode(QAbstractItemView::ExtendedSelection);
setSelectionBehavior(QAbstractItemView::SelectRows);
......
......@@ -30,7 +30,7 @@ private:
void slotMimePartDestroyed();
void saveMimePartTreeConfig();
void restoreMimePartTreeConfig();
MimeTreeModel *mMimePartModel = nullptr;
MimeTreeModel *const mMimePartModel;
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment