Commit 8dc86487 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify pointer

parent 2ddcb64d
Pipeline #56261 passed with stage
in 42 minutes and 21 seconds
......@@ -33,6 +33,7 @@ static const char myScamDetectionDetailsDialogConfigGroupName[] = "ScamDetection
}
ScamDetectionDetailsDialog::ScamDetectionDetailsDialog(QWidget *parent)
: QDialog(parent)
, mDetails(new KPIMTextEdit::RichTextEditorWidget(this))
{
setWindowTitle(i18nc("@title:window", "Details"));
setAttribute(Qt::WA_DeleteOnClose);
......@@ -45,7 +46,6 @@ ScamDetectionDetailsDialog::ScamDetectionDetailsDialog(QWidget *parent)
connect(buttonBox, &QDialogButtonBox::rejected, this, &ScamDetectionDetailsDialog::reject);
KGuiItem::assign(user1Button, KStandardGuiItem::saveAs());
setModal(false);
mDetails = new KPIMTextEdit::RichTextEditorWidget(this);
mainLayout->addWidget(mDetails);
mainLayout->addWidget(buttonBox);
mDetails->setReadOnly(true);
......
......@@ -29,7 +29,7 @@ private:
void slotSaveAs();
void writeConfig();
void readConfig();
KPIMTextEdit::RichTextEditorWidget *mDetails = nullptr;
KPIMTextEdit::RichTextEditorWidget *const mDetails;
};
}
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