diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dummyresource/resourcefactory.cpp | 2 | ||||
-rw-r--r-- | examples/maildirresource/maildirresource.cpp | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index 6bb87f6..a24ff27 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp | |||
@@ -123,8 +123,6 @@ void DummyResource::synchronize(const QString &bufferType, const QMap<QString, Q | |||
123 | }, true); | 123 | }, true); |
124 | 124 | ||
125 | if (!found) { //A new entity | 125 | if (!found) { //A new entity |
126 | m_fbb.Clear(); | ||
127 | |||
128 | flatbuffers::FlatBufferBuilder entityFbb; | 126 | flatbuffers::FlatBufferBuilder entityFbb; |
129 | createEntity(remoteId, it.value(), entityFbb, synchronizationTransaction); | 127 | createEntity(remoteId, it.value(), entityFbb, synchronizationTransaction); |
130 | 128 | ||
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index 909eb10..9769444 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp | |||
@@ -121,8 +121,6 @@ void MaildirResource::synchronizeFolders(Akonadi2::Storage::Transaction &transac | |||
121 | }, true); | 121 | }, true); |
122 | 122 | ||
123 | if (!found) { //A new entity | 123 | if (!found) { //A new entity |
124 | m_fbb.Clear(); | ||
125 | |||
126 | KPIM::Maildir md(folder, folder == mMaildirPath); | 124 | KPIM::Maildir md(folder, folder == mMaildirPath); |
127 | 125 | ||
128 | Akonadi2::ApplicationDomain::Folder folder; | 126 | Akonadi2::ApplicationDomain::Folder folder; |
@@ -189,8 +187,6 @@ void MaildirResource::synchronizeMails(Akonadi2::Storage::Transaction &transacti | |||
189 | }, true); | 187 | }, true); |
190 | 188 | ||
191 | if (!found) { //A new entity | 189 | if (!found) { //A new entity |
192 | m_fbb.Clear(); | ||
193 | |||
194 | KMime::Message *msg = new KMime::Message; | 190 | KMime::Message *msg = new KMime::Message; |
195 | auto filepath = listingPath + QDir::separator() + fileName; | 191 | auto filepath = listingPath + QDir::separator() + fileName; |
196 | msg->setHead(KMime::CRLFtoLF(maildir.readEntryHeadersFromFile(filepath))); | 192 | msg->setHead(KMime::CRLFtoLF(maildir.readEntryHeadersFromFile(filepath))); |