Commit 701b7dbc authored by Laurent Montel's avatar Laurent Montel 😁

Initialize pointer

parent cfa18eea
......@@ -251,7 +251,7 @@ bool EwsFindItemResponse::parseRootFolder(QXmlStreamReader &reader)
EwsItem* EwsFindItemResponse::readItem(QXmlStreamReader &reader)
{
EwsItem *item = 0;
EwsItem *item = nullptr;
if (reader.name() == QStringLiteral("Item") ||
reader.name() == QStringLiteral("Message") ||
reader.name() == QStringLiteral("CalendarItem") ||
......
......@@ -73,7 +73,7 @@ public Q_SLOTS:
void treeItemChanged(QStandardItem *item);
void filterTextChanged(const QString &text);
public:
bool mEnabled;
bool mEnabled = true;
QCheckBox *mEnableCheckBox = nullptr;
QTreeView *mFolderTreeView = nullptr;
QWidget *mSubContainer = nullptr;
......@@ -82,15 +82,15 @@ public:
KMessageWidget *mMsgWidget = nullptr;
QStandardItemModel *mFolderTreeModel = nullptr;
QHash<QString, QStandardItem*> mFolderItemHash;
int mFolderListPendingRequests;
int mFolderListPendingRequests = 0;
EwsFolder::List mFolders;
EwsId::List mSubscribedIds;
EwsId::List mOrigSubscribedIds;
bool mSubscribedIdsRetrieved;
bool mSubscribedIdsRetrieved = true;
EwsSubscriptionFilterModel *mFilterModel = nullptr;
Settings *mSettings = nullptr;
EwsSubscriptionWidget *q_ptr;
EwsSubscriptionWidget *q_ptr = nullptr;
Q_DECLARE_PUBLIC(EwsSubscriptionWidget)
};
......
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