Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 346e0b3e authored by Laurent Montel's avatar Laurent Montel 😁

initialize pointer

parent 0f6d7bcb
......@@ -67,12 +67,6 @@ using namespace KMail;
MessageActions::MessageActions(KActionCollection *ac, QWidget *parent)
: QObject(parent)
, mParent(parent)
, mMessageView(nullptr)
, mRedirectAction(nullptr)
, mPrintPreviewAction(nullptr)
, mCustomTemplatesMenu(nullptr)
, mAddFollowupReminderAction(nullptr)
, mDebugBalooAction(nullptr)
{
mWebShortcutMenuManager = new KIO::KUriFilterSearchProviderActions(this);
mReplyActionMenu = new KActionMenu(QIcon::fromTheme(QStringLiteral("mail-reply-sender")), i18nc("Message->", "&Reply"), this);
......
......@@ -134,32 +134,32 @@ private Q_SLOTS:
void slotAddFollowupReminder();
private:
QList<QAction *> mMailListActionList;
QWidget *mParent;
QWidget *mParent = nullptr;
Akonadi::Item mCurrentItem;
Akonadi::Item::List mVisibleItems;
KMReaderWin *mMessageView;
KActionMenu *mReplyActionMenu;
QAction *mReplyAction;
QAction *mReplyAllAction;
QAction *mReplyAuthorAction;
QAction *mReplyListAction;
QAction *mNoQuoteReplyAction;
QAction *mForwardInlineAction;
QAction *mForwardAttachedAction;
QAction *mRedirectAction;
KActionMenu *mStatusMenu;
KActionMenu *mForwardActionMenu;
KActionMenu *mMailingListActionMenu;
QAction *mEditAction;
QAction *mAnnotateAction;
QAction *mPrintAction;
QAction *mPrintPreviewAction;
TemplateParser::CustomTemplatesMenu *mCustomTemplatesMenu;
QAction *mListFilterAction;
QAction *mAddFollowupReminderAction;
QAction *mDebugBalooAction;
KIO::KUriFilterSearchProviderActions *mWebShortcutMenuManager;
KMReaderWin *mMessageView = nullptr;
KActionMenu *mReplyActionMenu = nullptr;
QAction *mReplyAction = nullptr;
QAction *mReplyAllAction = nullptr;
QAction *mReplyAuthorAction = nullptr;
QAction *mReplyListAction = nullptr;
QAction *mNoQuoteReplyAction = nullptr;
QAction *mForwardInlineAction = nullptr;
QAction *mForwardAttachedAction = nullptr;
QAction *mRedirectAction = nullptr;
KActionMenu *mStatusMenu = nullptr;
KActionMenu *mForwardActionMenu = nullptr;
KActionMenu *mMailingListActionMenu = nullptr;
QAction *mEditAction = nullptr;
QAction *mAnnotateAction = nullptr;
QAction *mPrintAction = nullptr;
QAction *mPrintPreviewAction = nullptr;
TemplateParser::CustomTemplatesMenu *mCustomTemplatesMenu = nullptr;
QAction *mListFilterAction = nullptr;
QAction *mAddFollowupReminderAction = nullptr;
QAction *mDebugBalooAction = nullptr;
KIO::KUriFilterSearchProviderActions *mWebShortcutMenuManager = nullptr;
};
}
......
......@@ -37,8 +37,6 @@ using namespace KMail;
UndoStack::UndoStack(int size)
: QObject(nullptr)
, mSize(size)
, mLastId(0)
, mCachedInfo(nullptr)
{
}
......
......@@ -34,16 +34,14 @@ class UndoInfo
{
public:
UndoInfo()
: id(-1)
, moveToTrash(false)
{
}
int id;
int id = -1;
Akonadi::Item::List items;
Akonadi::Collection srcFolder;
Akonadi::Collection destFolder;
bool moveToTrash;
bool moveToTrash = false;
};
class UndoStack : public QObject
......@@ -71,9 +69,9 @@ protected Q_SLOTS:
protected:
QList<UndoInfo *> mStack;
int mSize;
int mLastId;
UndoInfo *mCachedInfo;
int mSize = 0;
int mLastId = 0;
UndoInfo *mCachedInfo = nullptr;
Q_SIGNALS:
void undoStackChanged();
......
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