Commit 27da7a56 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify pointer

parent 1fff4ce0
Pipeline #33394 failed with stage
in 60 minutes and 25 seconds
......@@ -31,10 +31,10 @@ public:
void save();
QuicktextManager *q = nullptr;
QuicktextManager *const q;
MailCommon::SnippetsModel *mModel = nullptr;
QItemSelectionModel *mSelectionModel = nullptr;
QWidget *mParent = nullptr;
QWidget *const mParent;
};
QModelIndex QuicktextManager::Private::currentGroupIndex() const
......
......@@ -30,7 +30,7 @@ Q_SIGNALS:
void insertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType type);
private:
void initializeMenu();
QWidget *mParentWidget = nullptr;
QWidget *const mParentWidget;
MessageComposer::ConvertSnippetVariableMenu *mMenu = nullptr;
MessageComposer::PluginComposerInterface *mComposerInterface = nullptr;
};
......
......@@ -18,8 +18,8 @@
QuickTextPluginEditorInterface::QuickTextPluginEditorInterface(QObject *parent)
: MessageComposer::PluginEditorInterface(parent)
, mModel(MailCommon::SnippetsModel::instance())
{
mModel = MailCommon::SnippetsModel::instance();
updateSnippetsInfo();
}
......
......@@ -29,7 +29,7 @@ private:
void slotActivated();
void selectPreviousWord(QTextCursor &cursor, int cursorPosition);
QVector<MailCommon::SnippetsInfo> mSnippetsInfo;
MailCommon::SnippetsModel *mModel = nullptr;
MailCommon::SnippetsModel *const mModel;
};
#endif
......@@ -36,7 +36,7 @@ private:
void deleteSnippet();
void deleteSnippetGroup();
void selectionWasChanged();
QuicktextManager *mSnippetsManager = nullptr;
QuicktextManager *const mSnippetsManager;
QAction *mAddSnippetAction = nullptr;
QAction *mEditSnippetAction = nullptr;
QAction *mDeleteSnippetAction = nullptr;
......
......@@ -10,7 +10,6 @@
AutomaticAddContactsConfigureDialog::AutomaticAddContactsConfigureDialog(QWidget *parent)
: PimCommon::ConfigurePluginDialog(parent)
, mConfigureWidget(nullptr)
{
setWindowTitle(i18nc("@title:window", "Configure \"Automatic Add Contacts\" Plugin"));
initLayout();
......
......@@ -22,10 +22,6 @@
CheckBeforeSendInterface::CheckBeforeSendInterface(QObject *parent)
: MessageComposer::PluginEditorCheckBeforeSendInterface(parent)
, mSendPlainText(false)
, mCheckMailTransport(false)
, mCheckDuplicateEmails(false)
, mCheckSendAttachments(false)
{
}
......
......@@ -10,7 +10,6 @@
CheckBeforeSendConfigureDialog::CheckBeforeSendConfigureDialog(QWidget *parent)
: PimCommon::ConfigurePluginDialog(parent)
, mConfigureWidget(nullptr)
{
setWindowTitle(i18nc("@title:window", "Configure \"Check Before Send Mail\" Plugin"));
initLayout();
......
......@@ -10,7 +10,6 @@
ConfirmAddressConfigureDialog::ConfirmAddressConfigureDialog(QWidget *parent)
: PimCommon::ConfigurePluginDialog(parent)
, mConfigureWidget(nullptr)
{
setWindowTitle(i18nc("@title:window", "Configure \"Confirm Email Address\" Plugin"));
initLayout();
......
......@@ -14,7 +14,6 @@
ConfirmAddressConfigureTabWidget::ConfirmAddressConfigureTabWidget(QWidget *parent)
: QWidget(parent)
, mIdentity(0)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -16,7 +16,6 @@
ConfirmAddressDialog::ConfirmAddressDialog(QWidget *parent)
: QDialog(parent)
, mCurrentIdentity(0)
{
setWindowTitle(i18nc("@title:window", "Confirm Addresses"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
......
......@@ -24,7 +24,7 @@ private:
void slotTextChanged(const QString &text);
void slotEnabledOkButton(bool);
MailTransport::Transport *mTransport = nullptr;
MailTransport::Transport *const mTransport;
MailTransport::SendmailConfigWidget *mConfigWidget = nullptr;
QPushButton *mOkButton = nullptr;
};
......
......@@ -32,7 +32,7 @@ public:
};
Q_DECLARE_FLAGS(DayNumbers, DayNumber)
QString info() const override;
Q_REQUIRED_RESULT QString info() const override;
private:
DayNumbers mDisplayedInfo;
......
......@@ -14,7 +14,6 @@ using namespace Akonadi;
SyncItipHandler::SyncItipHandler(const QString &receiver, const QString &iCal, const QString &type, const Akonadi::CalendarBase::Ptr &calendar, QObject *parent)
: QObject(parent)
, m_result(Akonadi::ITIPHandler::ResultSuccess)
{
Q_ASSERT(calendar);
qCDebug(TEXT_CALENDAR_LOG) << "SyncItipHandler::SyncItipHandler: " << this;
......
......@@ -32,7 +32,7 @@ public:
private:
QString m_errorMessage;
Akonadi::ITIPHandler::Result m_result;
Akonadi::ITIPHandler::Result m_result = Akonadi::ITIPHandler::ResultSuccess;
QEventLoop m_eventLoop;
IncidenceEditorNG::GroupwareUiDelegate *m_counterProposalEditorDelegate = nullptr;
};
......
......@@ -55,7 +55,7 @@ public:
}
private:
ItineraryKDEConnectHandler *m_kdeConnect = nullptr;
ItineraryKDEConnectHandler *const m_kdeConnect;
};
}
......
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