Commit 9a7f8909 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Initialize variables in header directly

parent b8e3b5ac
Pipeline #44514 passed with stage
in 20 minutes and 49 seconds
......@@ -404,15 +404,6 @@ AkonadiCollectionView *AkonadiCollectionViewFactory::collectionView() const
AkonadiCollectionView::AkonadiCollectionView(CalendarView *view, bool hasContextMenu, QWidget *parent)
: CalendarViewExtension(parent)
, mActionManager(nullptr)
, mCollectionView(nullptr)
, mBaseModel(nullptr)
, mSelectionProxyModel(nullptr)
, mAssignColor(nullptr)
, mDefaultCalendar(nullptr)
, mServerSideSubscription(nullptr)
, mNotSendAddRemoveSignal(false)
, mWasDefaultCalendar(false)
, mHasContextMenu(hasContextMenu)
{
mManagerShowCollectionProperties = new ManageShowCollectionProperties(this, this);
......
......@@ -101,9 +101,9 @@ private:
QAction *mAssignColor = nullptr;
QAction *mDefaultCalendar = nullptr;
QAction *mServerSideSubscription = nullptr;
bool mNotSendAddRemoveSignal;
bool mWasDefaultCalendar;
bool mHasContextMenu;
bool mNotSendAddRemoveSignal = false;
bool mWasDefaultCalendar = false;
const bool mHasContextMenu;
NewNodeExpander *mNewNodeExpander = nullptr;
ManageShowCollectionProperties *mManagerShowCollectionProperties = nullptr;
};
......
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