diff options
Diffstat (limited to 'common/domain/event.cpp')
-rw-r--r-- | common/domain/event.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/common/domain/event.cpp b/common/domain/event.cpp index e107441..38872f9 100644 --- a/common/domain/event.cpp +++ b/common/domain/event.cpp | |||
@@ -62,12 +62,8 @@ void TypeImplementation<Event>::index(const Event &type, Akonadi2::Storage::Tran | |||
62 | QSharedPointer<ReadPropertyMapper<TypeImplementation<Event>::Buffer> > TypeImplementation<Event>::initializeReadPropertyMapper() | 62 | QSharedPointer<ReadPropertyMapper<TypeImplementation<Event>::Buffer> > TypeImplementation<Event>::initializeReadPropertyMapper() |
63 | { | 63 | { |
64 | auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create(); | 64 | auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create(); |
65 | propertyMapper->addMapping("summary", [](Buffer const *buffer) -> QVariant { | 65 | propertyMapper->addMapping<QString, Buffer>("summary", &Buffer::summary); |
66 | return propertyToVariant<QString>(buffer->summary()); | 66 | propertyMapper->addMapping<QString, Buffer>("uid", &Buffer::uid); |
67 | }); | ||
68 | propertyMapper->addMapping("uid", [](Buffer const *buffer) -> QVariant { | ||
69 | return propertyToVariant<QString>(buffer->uid()); | ||
70 | }); | ||
71 | return propertyMapper; | 67 | return propertyMapper; |
72 | } | 68 | } |
73 | 69 | ||