Commit ed82c3f6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify pointer

parent 91454f95
Pipeline #127943 passed with stage
in 1 minute and 23 seconds
......@@ -23,9 +23,9 @@
using namespace NoteShared;
NoteAlarmDialog::NoteAlarmDialog(const QString &caption, QWidget *parent)
: QDialog(parent)
, m_buttons(new QButtonGroup(this))
{
setWindowTitle(caption);
auto mainLayout = new QVBoxLayout(this);
......@@ -38,7 +38,6 @@ NoteAlarmDialog::NoteAlarmDialog(const QString &caption, QWidget *parent)
auto pageVBoxLayout = new QVBoxLayout(page);
pageVBoxLayout->setContentsMargins(0, 0, 0, 0);
m_buttons = new QButtonGroup(this);
auto group = new QGroupBox(i18n("Scheduled Alarm"), page);
pageVBoxLayout->addWidget(group);
auto layout = new QVBoxLayout;
......
......@@ -34,7 +34,7 @@ private:
private:
KDateComboBox *m_atDate = nullptr;
KTimeComboBox *m_atTime = nullptr;
QButtonGroup *m_buttons = nullptr;
QButtonGroup *const m_buttons = 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