Commit 105da9c6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify pointer

parent 4b971fdd
Pipeline #194090 passed with stage
in 5 minutes and 36 seconds
......@@ -42,7 +42,7 @@ protected Q_SLOTS:
private:
KCalendarCore::Attachment mAttachment;
AttachmentIconItem *mItem = nullptr;
AttachmentIconItem *const mItem;
QMimeType mMimeType;
Ui::AttachmentEditDialog *const mUi;
QPushButton *mOkButton = nullptr;
......
......@@ -175,7 +175,7 @@ private:
// to prevent the process from being repeated many times
// after a series of quick parameter changes.
CalendarSupport::FreeBusyItemModel *mFBModel = nullptr;
CalendarSupport::FreeBusyItemModel *const mFBModel;
QWidget *mParentWidget = nullptr;
QSet<KCalendarCore::Attendee::Role> mMandatoryRoles;
......
......@@ -57,13 +57,13 @@ void FreeBusyUrlDialog::slotOk()
FreeBusyUrlWidget::FreeBusyUrlWidget(const AttendeeData::Ptr &attendee, QWidget *parent)
: QWidget(parent)
, mAttendee(attendee)
, mUrlEdit(new KLineEdit(this))
{
QBoxLayout *topLayout = new QVBoxLayout(this);
auto label = new QLabel(xi18n("Location of Free/Busy information for %1 <placeholder>%2</placeholder>:", mAttendee->name(), mAttendee->email()), this);
topLayout->addWidget(label);
mUrlEdit = new KLineEdit(this);
mUrlEdit->setFocus();
mUrlEdit->setWhatsThis(i18nc("@info:whatsthis", "Enter the location of the Free/Busy information for the attendee."));
mUrlEdit->setToolTip(i18nc("@info:tooltip", "Enter the location of the information."));
......
......@@ -39,7 +39,7 @@ public:
void saveConfig();
private:
KLineEdit *mUrlEdit = nullptr;
KLineEdit *const mUrlEdit;
AttendeeData::Ptr mAttendee;
};
}
......@@ -48,7 +48,7 @@ private:
Ui::EventOrTodoDesktop *const mUi;
KCalendarCore::Alarm::List mAlarms;
IncidenceDateTime *mDateTime = nullptr;
IncidenceDateTime *const mDateTime;
int mEnabledAlarmCount = 0;
bool mIsTodo = false;
};
......
......@@ -41,7 +41,7 @@ private:
void onSelectionChanged(const Akonadi::Tag::List &);
void onMissingTagCreated(KJob *);
Ui::EventOrTodoDesktop *mUi = nullptr;
Ui::EventOrTodoDesktop *const mUi;
/**
* List of categories for which no tag might exist.
......
Supports Markdown
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