Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit b1f98178 authored by Laurent Montel's avatar Laurent Montel 😁

Const'ify

parent 3b041ea9
......@@ -34,7 +34,7 @@ AddresseeLineEditAkonadi::~AddresseeLineEditAkonadi()
}
Akonadi::Session *AddresseeLineEditAkonadi::akonadiSession()
Akonadi::Session *AddresseeLineEditAkonadi::akonadiSession() const
{
if (!m_akonadiSession) {
m_akonadiSession = new Akonadi::Session("contactsCompletionSession");
......
......@@ -32,10 +32,10 @@ public:
explicit AddresseeLineEditAkonadi(AddresseeLineEditManager *addressLineStatic);
~AddresseeLineEditAkonadi();
Akonadi::Session *akonadiSession();
Akonadi::Session *akonadiSession() const;
private:
Akonadi::Session *m_akonadiSession;
mutable Akonadi::Session *m_akonadiSession;
AddresseeLineEditManager *mAddressLineStatic;
};
}
......
......@@ -98,7 +98,7 @@ void AddresseeLineEditManager::removeCompletionSource(const QString &source)
}
}
Akonadi::Session *AddresseeLineEditManager::akonadiSession()
Akonadi::Session *AddresseeLineEditManager::akonadiSession() const
{
return mAddresseeLineEditAkonadi->akonadiSession();
}
......
......@@ -104,7 +104,7 @@ public:
void setBalooCompletionSource(int value);
//Akonadi
Akonadi::Session *akonadiSession();
Akonadi::Session *akonadiSession() const;
KMailCompletion *completion() const;
......
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