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 ce966f4f authored by Laurent Montel's avatar Laurent Montel 😁

initialize pointer

parent 8b64f14a
......@@ -65,16 +65,16 @@ private:
void slotFolderChanged(const Akonadi::Collection &);
void slotUpdateOkButton();
void load(ArchiveMailInfo *info);
MailCommon::FolderRequester *mFolderRequester;
FormatComboBox *mFormatComboBox;
UnitComboBox *mUnits;
QCheckBox *mRecursiveCheckBox;
KUrlRequester *mPath;
QSpinBox *mDays;
QSpinBox *mMaximumArchive;
ArchiveMailInfo *mInfo;
QPushButton *mOkButton;
MailCommon::FolderRequester *mFolderRequester = nullptr;
FormatComboBox *mFormatComboBox = nullptr;
UnitComboBox *mUnits = nullptr;
QCheckBox *mRecursiveCheckBox = nullptr;
KUrlRequester *mPath = nullptr;
QSpinBox *mDays = nullptr;
QSpinBox *mMaximumArchive = nullptr;
ArchiveMailInfo *mInfo = nullptr;
QPushButton *mOkButton = nullptr;
};
#endif // ADDARCHIVEMAILDIALOG_H
......@@ -59,8 +59,8 @@ protected:
private:
void mailCollectionRemoved(const Akonadi::Collection &collection);
QTimer *mTimer;
ArchiveMailManager *mArchiveManager;
QTimer *mTimer = nullptr;
ArchiveMailManager *mArchiveManager = nullptr;
};
#endif /* ARCHIVEMAILAGENT_H */
......@@ -42,7 +42,7 @@ protected Q_SLOTS:
private:
void writeConfig();
void readConfig();
ArchiveMailWidget *mWidget;
ArchiveMailWidget *mWidget = nullptr;
};
#endif /* ARCHIVEMAILWIDGET_H */
......@@ -56,11 +56,11 @@ public:
void expunge(Akonadi::Collection::Id col, bool sync) override;
private:
KIdentityManagement::IdentityManager *mIdentityManager;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
Akonadi::EntityTreeModel *mEntityTreeModel;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
MailCommon::JobScheduler *mJobScheduler;
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor = nullptr;
Akonadi::EntityTreeModel *mEntityTreeModel = nullptr;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel = nullptr;
MailCommon::JobScheduler *mJobScheduler = nullptr;
};
#endif
......@@ -60,7 +60,7 @@ private:
void removeCollectionId(Akonadi::Collection::Id id);
KSharedConfig::Ptr mConfig;
QList<ArchiveMailInfo *> mListArchiveInfo;
ArchiveMailKernel *mArchiveMailKernel;
ArchiveMailKernel *mArchiveMailKernel = nullptr;
};
#endif /* ARCHIVEMAILMANAGER_H */
......@@ -34,7 +34,7 @@ public:
ArchiveMailInfo *info() const;
private:
ArchiveMailInfo *mInfo;
ArchiveMailInfo *mInfo = nullptr;
};
class ArchiveMailWidget : public QWidget
......@@ -75,7 +75,7 @@ private:
void slotArchiveNow();
void slotItemChanged(QTreeWidgetItem *item, int);
bool mChanged;
Ui::ArchiveMailWidget *mWidget;
Ui::ArchiveMailWidget *mWidget = nullptr;
};
#endif // ARCHIVEMAILWIDGET_H
......@@ -40,8 +40,8 @@ private:
void slotBackupDone(const QString &info);
void slotError(const QString &error);
QPixmap mPixmap;
ArchiveMailInfo *mInfo;
ArchiveMailManager *mManager;
ArchiveMailInfo *mInfo = nullptr;
ArchiveMailManager *mManager = nullptr;
};
/// A scheduled "expire mails in this folder" task.
......@@ -69,8 +69,8 @@ public:
}
private:
ArchiveMailInfo *mInfo;
ArchiveMailManager *mManager;
ArchiveMailInfo *mInfo = nullptr;
ArchiveMailManager *mManager = nullptr;
};
#endif // ARCHIVEJOB_H
......@@ -44,8 +44,8 @@ protected:
void itemAdded(const Akonadi::Item &item, const Akonadi::Collection &collection) override;
private:
FollowUpReminderManager *mManager;
QTimer *mTimer;
FollowUpReminderManager *mManager = nullptr;
QTimer *mTimer = nullptr;
};
#endif // FOLLOWUPREMINDERAGENT_H
......@@ -42,7 +42,7 @@ public:
private:
void readConfig();
void writeConfig();
FollowUpReminderInfoWidget *mWidget;
FollowUpReminderInfoWidget *mWidget = nullptr;
};
#endif // FOLLOWUPREMINDERINFODIALOG_H
......@@ -39,7 +39,7 @@ public:
FollowUpReminder::FollowUpReminderInfo *info() const;
private:
FollowUpReminder::FollowUpReminderInfo *mInfo;
FollowUpReminder::FollowUpReminderInfo *mInfo = nullptr;
};
class FollowUpReminderInfoWidget : public QWidget
......@@ -79,8 +79,8 @@ private:
AnswerMessageId
};
QList<qint32> mListRemoveId;
QTreeWidget *mTreeWidget;
bool mChanged;
QTreeWidget *mTreeWidget = nullptr;
bool mChanged = false;
};
#endif // FOLLOWUPREMINDERINFOWIDGET_H
......@@ -41,7 +41,7 @@ private:
void slotSave();
void readConfig();
void writeConfig();
FollowUpReminderInfoWidget *mWidget;
FollowUpReminderInfoWidget *mWidget = nullptr;
};
#endif // FOLLOWUPREMINDERNOANSWERDIALOG_H
......@@ -31,7 +31,7 @@ public:
private:
void readConfig();
void writeConfig();
ConfigureWidget *mConfigureWidget;
ConfigureWidget *mConfigureWidget = nullptr;
};
#endif // CONFIGUREDIALOG_H
......@@ -36,11 +36,11 @@ public:
void expunge(Akonadi::Collection::Id id, bool sync) override;
private:
KIdentityManagement::IdentityManager *mIdentityManager;
MessageComposer::MessageSender *mMessageSender;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
Akonadi::EntityTreeModel *mEntityTreeModel;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
MessageComposer::MessageSender *mMessageSender = nullptr;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor = nullptr;
Akonadi::EntityTreeModel *mEntityTreeModel = nullptr;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel = nullptr;
};
#endif
......@@ -69,18 +69,18 @@ private:
void readConfig();
void writeConfig();
private:
KPIMTextEdit::PlainTextEditorWidget *mTextEdit;
QCheckBox *mLogActiveBox;
QGroupBox *mLogDetailsBox;
QCheckBox *mLogPatternDescBox;
QCheckBox *mLogRuleEvaluationBox;
QCheckBox *mLogPatternResultBox;
QCheckBox *mLogFilterActionBox;
QSpinBox *mLogMemLimitSpin;
QPushButton *mUser1Button;
QPushButton *mUser2Button;
KPIMTextEdit::PlainTextEditorWidget *mTextEdit = nullptr;
QCheckBox *mLogActiveBox = nullptr;
QGroupBox *mLogDetailsBox = nullptr;
QCheckBox *mLogPatternDescBox = nullptr;
QCheckBox *mLogRuleEvaluationBox = nullptr;
QCheckBox *mLogPatternResultBox = nullptr;
QCheckBox *mLogFilterActionBox = nullptr;
QSpinBox *mLogMemLimitSpin = nullptr;
QPushButton *mUser1Button = nullptr;
QPushButton *mUser2Button = nullptr;
bool mIsInitialized;
bool mIsInitialized = false;
};
#endif
......@@ -84,13 +84,13 @@ public Q_SLOTS:
private:
bool isFilterableCollection(const Akonadi::Collection &collection) const;
FilterManager *m_filterManager;
FilterManager *m_filterManager = nullptr;
FilterLogDialog *m_filterLogDialog;
QTimer *mProgressTimer;
DummyKernel *mMailFilterKernel;
FilterLogDialog *m_filterLogDialog = nullptr;
QTimer *mProgressTimer = nullptr;
DummyKernel *mMailFilterKernel = nullptr;
int mProgressCounter;
Akonadi::Monitor *itemMonitor;
Akonadi::Monitor *itemMonitor = nullptr;
void filterItem(const Akonadi::Item &item, const Akonadi::Collection &collection);
};
......
......@@ -55,7 +55,7 @@ private:
void slotSendNow(Akonadi::Item::Id id);
void slotStartAgent();
bool mAgentInitialized;
SendLaterManager *mManager;
SendLaterManager *mManager = nullptr;
};
#endif // SENDLATERAGENT_H
......@@ -42,7 +42,7 @@ private:
void slotSave();
void readConfig();
void writeConfig();
SendLaterWidget *mWidget;
SendLaterWidget *mWidget = nullptr;
};
#endif // SENDLATERCONFIGUREDIALOG_H
......@@ -40,7 +40,7 @@ public:
SendLater::SendLaterInfo *info() const;
private:
SendLater::SendLaterInfo *mInfo;
SendLater::SendLaterInfo *mInfo = nullptr;
};
class SendLaterWidget : public QWidget
......@@ -77,7 +77,7 @@ private:
void load();
QList<Akonadi::Item::Id> mListMessagesToRemove;
bool mChanged;
Ui::SendLaterConfigureWidget *mWidget;
Ui::SendLaterConfigureWidget *mWidget = nullptr;
};
#endif // SENDLATERCONFIGUREWIDGET_H
......@@ -48,8 +48,8 @@ private:
void slotDeleteItem(KJob *);
void updateAndCleanMessageBeforeSending(const KMime::Message::Ptr &msg);
Akonadi::ItemFetchScope mFetchScope;
SendLaterManager *mManager;
SendLater::SendLaterInfo *mInfo;
SendLaterManager *mManager = nullptr;
SendLater::SendLaterInfo *mInfo = nullptr;
Akonadi::Item mItem;
};
......
......@@ -39,7 +39,7 @@ private:
void verifySignature(bool sign);
void verifyEncryption(bool encrypt);
void waitForMainWindowToClose();
KMKernel *mKernel;
KMKernel *mKernel = nullptr;
};
#endif // KMCOMMANDSTEST_H
......@@ -45,7 +45,7 @@ protected:
void insertFromMimeData(const QMimeData *source) override;
private:
KMComposerWin *mComposerWin;
KMComposerWin *mComposerWin = nullptr;
};
#endif // KMCOMPOSEREDITORNG_H
......@@ -35,7 +35,7 @@ public Q_SLOTS:
void slotPaste();
void slotMarkAll();
private:
KMComposerWin *mComposerWin;
KMComposerWin *mComposerWin = nullptr;
};
#endif // KMCOMPOSERGLOBALACTION_H
......@@ -744,7 +744,7 @@ int KMComposerWin::calcColumnWidth(int which, long allShowing, int width) const
return width;
}
QLabel *w;
QLabel *w = nullptr;
if (which == HDR_IDENTITY) {
w = mLblIdentity;
} else if (which == HDR_DICTIONARY) {
......@@ -1050,7 +1050,8 @@ void KMComposerWin::setQuotePrefix(uint uoid)
void KMComposerWin::setupActions(void)
{
KActionMenuTransport *actActionNowMenu, *actActionLaterMenu;
KActionMenuTransport *actActionNowMenu = nullptr;
KActionMenuTransport *actActionLaterMenu = nullptr;
if (MessageComposer::MessageComposerSettings::self()->sendImmediate()) {
//default = send now, alternative = queue
......
......@@ -541,24 +541,24 @@ private:
Akonadi::Collection mCollectionForNewMessage;
QMap<QByteArray, QString> mExtraHeaders;
QWidget *mMainWidget;
MessageComposer::ComposerLineEdit *mEdtFrom;
MessageComposer::ComposerLineEdit *mEdtReplyTo;
PimCommon::LineEditWithAutoCorrection *mEdtSubject;
QLabel *mLblIdentity;
QLabel *mLblTransport;
QLabel *mLblFcc;
QLabel *mLblFrom;
QLabel *mLblReplyTo;
QLabel *mLblSubject;
QLabel *mDictionaryLabel;
QLabel *mCursorLineLabel;
QLabel *mCursorColumnLabel;
QLabel *mStatusbarLabel;
QWidget *mMainWidget = nullptr;
MessageComposer::ComposerLineEdit *mEdtFrom = nullptr;
MessageComposer::ComposerLineEdit *mEdtReplyTo = nullptr;
PimCommon::LineEditWithAutoCorrection *mEdtSubject = nullptr;
QLabel *mLblIdentity = nullptr;
QLabel *mLblTransport = nullptr;
QLabel *mLblFcc = nullptr;
QLabel *mLblFrom = nullptr;
QLabel *mLblReplyTo = nullptr;
QLabel *mLblSubject = nullptr;
QLabel *mDictionaryLabel = nullptr;
QLabel *mCursorLineLabel = nullptr;
QLabel *mCursorColumnLabel = nullptr;
QLabel *mStatusbarLabel = nullptr;
bool mDone;
KMime::Message::Ptr mMsg;
QGridLayout *mGrid;
QGridLayout *mGrid = nullptr;
QString mTextSelection;
QString mCustomTemplate;
bool mLastSignActionState;
......@@ -575,45 +575,45 @@ private:
uint mId;
TemplateContext mContext;
KRecentFilesAction *mRecentAction;
KToggleAction *mSignAction;
KToggleAction *mEncryptAction;
KToggleAction *mRequestMDNAction;
KToggleAction *mUrgentAction;
KToggleAction *mAllFieldsAction;
KToggleAction *mFromAction;
KToggleAction *mReplyToAction;
KToggleAction *mSubjectAction;
KToggleAction *mIdentityAction;
KToggleAction *mTransportAction;
KToggleAction *mFccAction;
KToggleAction *mWordWrapAction;
KToggleAction *mFixedFontAction;
KToggleAction *mAutoSpellCheckingAction;
KToggleAction *mDictionaryAction;
KToggleAction *mSnippetAction;
QAction *mAppendSignature;
QAction *mPrependSignature;
QAction *mInsertSignatureAtCursorPosition;
KToggleAction *mMarkupAction;
CodecAction *mCodecAction;
KSelectAction *mCryptoModuleAction;
QAction *mFindText;
QAction *mFindNextText;
QAction *mReplaceText;
QAction *mSelectAll;
QSplitter *mHeadersToEditorSplitter;
QWidget *mHeadersArea;
QSplitter *mSplitter;
QSplitter *mSnippetSplitter;
QByteArray mOriginalPreferredCharset;
MessageComposer::Composer *mDummyComposer;
KRecentFilesAction *mRecentAction = nullptr;
KToggleAction *mSignAction = nullptr;
KToggleAction *mEncryptAction = nullptr;
KToggleAction *mRequestMDNAction = nullptr;
KToggleAction *mUrgentAction = nullptr;
KToggleAction *mAllFieldsAction = nullptr;
KToggleAction *mFromAction = nullptr;
KToggleAction *mReplyToAction = nullptr;
KToggleAction *mSubjectAction = nullptr;
KToggleAction *mIdentityAction = nullptr;
KToggleAction *mTransportAction = nullptr;
KToggleAction *mFccAction = nullptr;
KToggleAction *mWordWrapAction = nullptr;
KToggleAction *mFixedFontAction = nullptr;
KToggleAction *mAutoSpellCheckingAction = nullptr;
KToggleAction *mDictionaryAction = nullptr;
KToggleAction *mSnippetAction = nullptr;
QAction *mAppendSignature = nullptr;
QAction *mPrependSignature = nullptr;
QAction *mInsertSignatureAtCursorPosition = nullptr;
KToggleAction *mMarkupAction = nullptr;
CodecAction *mCodecAction = nullptr;
KSelectAction *mCryptoModuleAction = nullptr;
QAction *mFindText = nullptr;
QAction *mFindNextText = nullptr;
QAction *mReplaceText = nullptr;
QAction *mSelectAll = nullptr;
QSplitter *mHeadersToEditorSplitter = nullptr;
QWidget *mHeadersArea = nullptr;
QSplitter *mSplitter = nullptr;
QSplitter *mSnippetSplitter = nullptr;
QByteArray mOriginalPreferredCharset = nullptr;
MessageComposer::Composer *mDummyComposer = nullptr;
// used for auto saving, printing, etc. Not for sending, which happens in ComposerViewBase
QList< MessageComposer::Composer * > mMiscComposers;
......@@ -622,30 +622,30 @@ private:
QString mdbusObjectPath;
static int s_composerNumber;
MessageComposer::ComposerViewBase *mComposerBase;
MessageComposer::ComposerViewBase *mComposerBase = nullptr;
SnippetWidget *mSnippetWidget;
PimCommon::CustomToolsWidgetNg *mCustomToolsWidget;
AttachmentMissingWarning *mAttachmentMissing;
ExternalEditorWarning *mExternalEditorWarning;
QTimer *mVerifyMissingAttachment;
MailCommon::FolderRequester *mFccFolder;
SnippetWidget *mSnippetWidget = nullptr;
PimCommon::CustomToolsWidgetNg *mCustomToolsWidget = nullptr;
AttachmentMissingWarning *mAttachmentMissing = nullptr;
ExternalEditorWarning *mExternalEditorWarning = nullptr;
QTimer *mVerifyMissingAttachment = nullptr;
MailCommon::FolderRequester *mFccFolder = nullptr;
bool mPreventFccOverwrite;
bool mCheckForForgottenAttachments;
bool mWasModified;
CryptoStateIndicatorWidget *mCryptoStateIndicatorWidget;
CryptoStateIndicatorWidget *mCryptoStateIndicatorWidget = nullptr;
bool mSendNowByShortcutUsed;
KSplitterCollapserButton *mSnippetSplitterCollapser;
KToggleAction *mFollowUpToggleAction;
StatusBarLabelToggledState *mStatusBarLabelToggledOverrideMode;
StatusBarLabelToggledState *mStatusBarLabelSpellCheckingChangeMode;
PotentialPhishingEmailWarning *mPotentialPhishingEmailWarning;
KMComposerGlobalAction *mGlobalAction;
KPIMTextEdit::RichTextEditorWidget *mRichTextEditorwidget;
KMailPluginEditorManagerInterface *mPluginEditorManagerInterface;
KMailPluginEditorCheckBeforeSendManagerInterface *mPluginEditorCheckBeforeSendManagerInterface;
KMailPluginEditorInitManagerInterface *mPluginEditorInitManagerInterface;
KSplitterCollapserButton *mSnippetSplitterCollapser = nullptr;
KToggleAction *mFollowUpToggleAction = nullptr;
StatusBarLabelToggledState *mStatusBarLabelToggledOverrideMode = nullptr;
StatusBarLabelToggledState *mStatusBarLabelSpellCheckingChangeMode = nullptr;
PotentialPhishingEmailWarning *mPotentialPhishingEmailWarning = nullptr;
KMComposerGlobalAction *mGlobalAction = nullptr;
KPIMTextEdit::RichTextEditorWidget *mRichTextEditorwidget = nullptr;
KMailPluginEditorManagerInterface *mPluginEditorManagerInterface = nullptr;
KMailPluginEditorCheckBeforeSendManagerInterface *mPluginEditorCheckBeforeSendManagerInterface = nullptr;
KMailPluginEditorInitManagerInterface *mPluginEditorInitManagerInterface = nullptr;
};
#endif
......@@ -36,8 +36,8 @@ public:
private:
void updateShowAlwaysIndicator();
QLabel *mSignatureStateIndicator;
QLabel *mEncryptionStateIndicator;
QLabel *mSignatureStateIndicator = nullptr;
QLabel *mEncryptionStateIndicator = nullptr;
bool mShowAlwaysIndicator;
bool mIsSign;
bool mIsEncrypted;
......
......@@ -40,7 +40,7 @@ protected:
void dropEvent(QDropEvent *) override;
private:
MailCommon::SnippetsManager *mSnippetsManager;
MailCommon::SnippetsManager *mSnippetsManager = nullptr;
};
#endif
......@@ -167,7 +167,7 @@ private Q_SLOTS:
private:
QString mName;
QString mEmail;
QGpgME::Job *mJob;
QGpgME::Job *mJob = nullptr;
};
KeyGenerationJob::KeyGenerationJob(const QString &name, const QString &email, KeySelectionCombo *parent)
......
......@@ -97,7 +97,7 @@ protected:
#endif
private:
KIdentityManagement::IdentityManager *mIdentityManager;
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
};
} // namespace KMail
......
......@@ -53,7 +53,7 @@ public:
void setSettings(const CreateReplyMessageJobSettings &settings);
private:
MessageComposer::MessageFactoryNG *mMessageFactory;
MessageComposer::MessageFactoryNG *mMessageFactory = nullptr;
void slotCreateReplyDone(const MessageComposer::MessageFactoryNG::MessageReply &reply);
CreateReplyMessageJobSettings mSettings;
};
......
......@@ -54,8 +54,8 @@ protected:
void guiActivateEvent(KParts::GUIActivateEvent *e) override;
private:
KMMainWidget *mainWidget;
QWidget *mParentWidget;
KMMainWidget *mainWidget = nullptr;
QWidget *mParentWidget = nullptr;
};
#endif
......@@ -391,8 +391,8 @@ public:
private:
Result execute() override;
MessageViewer::HeaderStylePlugin *mHeaderStylePlugin;
const MimeTreeParser::AttachmentStrategy *mAttachmentStrategy;
MessageViewer::HeaderStylePlugin *mHeaderStylePlugin = nullptr;
const MimeTreeParser::AttachmentStrategy *mAttachmentStrategy = nullptr;
QFont mOverrideFont;
QString mEncoding;
MessageViewer::Viewer::DisplayFormatMessage mFormat;
......
......@@ -500,8 +500,8 @@ private:
void openReader(bool onlyCheck);
QSharedPointer<MailCommon::FolderSettings> currentFolderCollection();
UndoStack *the_undoStack;
MessageComposer::AkonadiSender *the_msgSender;
UndoStack *the_undoStack = nullptr;
MessageComposer::AkonadiSender *the_msgSender = nullptr;
/** previous KMail version. If different from current,
the user has just updated. read from config */
QString the_previousVersion;
......@@ -513,30 +513,30 @@ private:
bool the_firstInstance;
KSharedConfig::Ptr mConfig;
QTextCodec *mNetCodec;
QTextCodec *mNetCodec = nullptr;
QString mXmlGuiInstance;
ConfigureDialog *mConfigureDialog;
ConfigureDialog *mConfigureDialog = nullptr;
QTimer *mBackgroundTasksTimer;
MailCommon::JobScheduler *mJobScheduler;
MailServiceImpl *mMailService;
QTimer *mBackgroundTasksTimer = nullptr;
MailCommon::JobScheduler *mJobScheduler = nullptr;
MailServiceImpl *mMailService = nullptr;
bool mSystemNetworkStatus;
KMail::KMSystemTray *mSystemTray;
KMail::KMSystemTray *mSystemTray = nullptr;
QHash<QString, KPIM::ProgressItem::CryptoStatus> mResourceCryptoSettingCache;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
Akonadi::EntityTreeModel *mEntityTreeModel;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor = nullptr;
Akonadi::EntityTreeModel *mEntityTreeModel = nullptr;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel = nullptr;
/// List of Akonadi resources that are currently being checked.
QStringList mResourcesBeingChecked;
QPointer<MailCommon::KMFilterDialog> mFilterEditDialog;
PimCommon::AutoCorrection *mAutoCorrection;
FolderArchiveManager *mFolderArchiveManager;
CheckIndexingManager *mCheckIndexingManager;
Akonadi::Search::PIM::IndexedItems *mIndexedItems;
PimCommon::AutoCorrection *mAutoCorrection = nullptr;
FolderArchiveManager *mFolderArchiveManager = nullptr;
CheckIndexingManager *mCheckIndexingManager = nullptr;
Akonadi::Search::PIM::IndexedItems *mIndexedItems = nullptr;
bool mDebugBaloo;
};
......
......@@ -106,7 +106,7 @@ bool KMSystemTray::buildPopupMenu()
contextMenu()->clear();
contextMenu()->setIcon(qApp->windowIcon());
contextMenu()->setTitle(i18n("KMail"));
QAction *action;
QAction *action = nullptr;
if ((action = mainWidget->action(QStringLiteral("check_mail")))) {
contextMenu()->addAction(action);
}
......
......@@ -139,7 +139,7 @@ void SummaryWidget::displayModel(const QModelIndex &parent, int &counter, const
const Akonadi::CollectionStatistics stats = col.statistics();
if (((stats.unreadCount()) != Q_INT64_C(0)) && showCollection) {
// Collection Name.