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

Const'ify pointer

parent 3825521d
Pipeline #58219 canceled with stage
......@@ -20,11 +20,11 @@
IdentityEditVcardDialog::IdentityEditVcardDialog(const QString &fileName, QWidget *parent)
: QDialog(parent)
, mContactEditor(new Akonadi::AkonadiContactEditor(Akonadi::AkonadiContactEditor::CreateMode, Akonadi::AkonadiContactEditor::VCardMode, this))
{
auto topLayout = new QVBoxLayout(this);
setModal(true);
mContactEditor = new Akonadi::AkonadiContactEditor(Akonadi::AkonadiContactEditor::CreateMode, Akonadi::AkonadiContactEditor::VCardMode, this);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
......
......@@ -38,6 +38,6 @@ private:
void slotDeleteCurrentVCard();
void deleteCurrentVcard(bool deleteOnDisk);
QString mVcardFileName;
Akonadi::AkonadiContactEditor *mContactEditor = nullptr;
Akonadi::AkonadiContactEditor *const mContactEditor;
};
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