Commit a0a41735 authored by J-P Nurmi's avatar J-P Nurmi Committed by The Qt Project
Browse files

QWinJumpListCategory: fix initialization of member variables


The pDocList member was left uninitialized when not using
QWinJumpListCategoryPrivate::create().

Change-Id: I3c443eaf00b8680d76cad710b2bdb8febb451ec7
Reviewed-by: default avatarIvan Vizir <define-true-false@yandex.com>
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@digia.com>
Showing with 7 additions and 3 deletions
......@@ -72,6 +72,11 @@ QT_BEGIN_NAMESPACE
A jump list category of tasks.
*/
QWinJumpListCategoryPrivate::QWinJumpListCategoryPrivate() :
visible(false), jumpList(0), type(QWinJumpListCategory::Custom), pDocList(0)
{
}
QWinJumpListCategory *QWinJumpListCategoryPrivate::create(QWinJumpListCategory::Type type, QWinJumpList *jumpList)
{
QWinJumpListCategory *category = new QWinJumpListCategory;
......@@ -130,9 +135,6 @@ void QWinJumpListCategoryPrivate::clearRecents()
QWinJumpListCategory::QWinJumpListCategory(const QString &title) :
d_ptr(new QWinJumpListCategoryPrivate)
{
d_ptr->pDocList = 0;
d_ptr->type = Custom;
d_ptr->visible = false;
d_ptr->title = title;
}
......
......@@ -53,6 +53,8 @@ class QWinJumpList;
class QWinJumpListCategoryPrivate
{
public:
QWinJumpListCategoryPrivate();
static QWinJumpListCategoryPrivate *get(QWinJumpListCategory *category)
{
return category->d_func();
......
Supports Markdown
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