Commit 4ce63005 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify pointer/variables

parent 3fb27ed5
......@@ -43,7 +43,9 @@ void ContactDefaultActions::connectToView(QObject *view)
}
if (metaObject->indexOfSignal(QMetaObject::normalizedSignature("emailClicked(const QString&, const QString&)").constData()) != -1) {
connect(view, SIGNAL(emailClicked(QString, QString)), this, SLOT(sendEmail(QString, QString)));
// clang-format off
connect(view, SIGNAL(emailClicked(QString,QString)), this, SLOT(sendEmail(QString,QString)));
// clang-format on
}
if (metaObject->indexOfSignal(QMetaObject::normalizedSignature("phoneNumberClicked(const KContacts::PhoneNumber&)").constData()) != -1) {
......
......@@ -68,8 +68,8 @@ public:
void storeContact(KContacts::Addressee &addr, ContactMetaDataAkonadi &metaData);
void setupMonitor();
AkonadiContactEditor *mParent = nullptr;
AkonadiContactEditor::Mode mMode;
AkonadiContactEditor *const mParent;
const AkonadiContactEditor::Mode mMode;
Akonadi::Item mItem;
Akonadi::ContactMetaDataAkonadi mContactMetaData;
Akonadi::Monitor *mMonitor = nullptr;
......
......@@ -126,7 +126,7 @@ public:
ContactEditorDialog *const q;
CollectionComboBox *mAddressBookBox = nullptr;
ContactEditorDialog::Mode mMode;
const ContactEditorDialog::Mode mMode;
AkonadiContactEditor *mEditor = nullptr;
};
......
......@@ -65,7 +65,7 @@ public:
ContactGroupEditorDialog *const q;
CollectionComboBox *mAddressBookBox = nullptr;
ContactGroupEditor *mEditor = nullptr;
ContactGroupEditorDialog::Mode mMode;
const ContactGroupEditorDialog::Mode mMode;
QPushButton *okButton = nullptr;
};
......
......@@ -133,7 +133,7 @@ public:
} while (foundEmpty);
}
ContactGroupModel *mParent = nullptr;
ContactGroupModel *const mParent;
QVector<GroupMember> mMembers;
KContacts::ContactGroup mGroup;
QString mLastErrorMessage;
......
......@@ -125,7 +125,7 @@ public:
QMetaObject::Connection mCollectionFetchJobConnection;
QMetaObject::Connection mJobConnection;
ContactGroupViewer *mParent = nullptr;
ContactGroupViewer *const mParent;
TextBrowser *mBrowser = nullptr;
QString mCurrentGroupName;
KContacts::Addressee::List mCurrentContacts;
......
......@@ -247,10 +247,10 @@ public:
}
AddEmailAddressJob *const q;
QString mCompleteAddress;
const QString mCompleteAddress;
QString mEmail;
QString mName;
QWidget *mParentWidget = nullptr;
QWidget *const mParentWidget;
Akonadi::Item mItem;
bool mInteractive = false;
};
......
......@@ -259,7 +259,7 @@ public:
AddEmailDisplayJob *const q;
Akonadi::Item contact;
Akonadi::Item::Id messageId;
QString mCompleteAddress;
const QString mCompleteAddress;
QString mEmail;
QString mName;
QWidget *const mParentWidget;
......
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