Commit 224f3dc6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify pointer

parent ce0238c4
Pipeline #146947 failed with stage
in 55 seconds
......@@ -17,11 +17,11 @@ using namespace KAddressBookImportExport;
ContactSelectionDialog::ContactSelectionDialog(QItemSelectionModel *selectionModel, bool allowToSelectTypeToExport, QWidget *parent)
: QDialog(parent)
, mSelectionWidget(new ContactSelectionWidget(selectionModel, this))
{
setWindowTitle(i18nc("@title:window", "Select Contacts"));
auto mainLayout = new QVBoxLayout(this);
mSelectionWidget = new ContactSelectionWidget(selectionModel, this);
if (allowToSelectTypeToExport) {
mainLayout->addWidget(mSelectionWidget);
mVCardExport = new ExportSelectionWidget(this);
......
......@@ -64,7 +64,7 @@ public:
Q_REQUIRED_RESULT Akonadi::Item::List selectedItems() const;
private:
ContactSelectionWidget *mSelectionWidget = nullptr;
ContactSelectionWidget *const mSelectionWidget;
ExportSelectionWidget *mVCardExport = nullptr;
};
}
......@@ -151,7 +151,7 @@ private:
QActionGroup *mViewModeGroup = nullptr;
ModelColumnManager *mModelColumnManager = nullptr;
KXMLGUIClient *mXmlGuiClient = nullptr;
KXMLGUIClient *const mXmlGuiClient;
KAddressBookGrantlee::GrantleeContactFormatter *mFormatter = nullptr;
KAddressBookGrantlee::GrantleeContactGroupFormatter *mGroupFormatter = nullptr;
GrantleeTheme::ThemeManager *mGrantleeThemeManager = 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