Commit 09cdfd65 authored by David Faure's avatar David Faure

Make attribute const

parent 9de2015f
......@@ -94,7 +94,7 @@ void CollectionIndexer::index(const Akonadi::Collection &collection)
doc.add_boolean_term(term.constData());
QByteArray ns;
if (Akonadi::CollectionIdentificationAttribute *folderAttribute = collection.attribute<Akonadi::CollectionIdentificationAttribute>()) {
if (const Akonadi::CollectionIdentificationAttribute *folderAttribute = collection.attribute<Akonadi::CollectionIdentificationAttribute>()) {
if (!folderAttribute->collectionNamespace().isEmpty()) {
ns = folderAttribute->collectionNamespace();
}
......
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