summaryrefslogtreecommitdiffstats
path: root/dummyresource/facade.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-08 09:35:37 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-08 09:35:37 +0200
commit82d5893b117d4f930a1ccfba40a8811a56abbe09 (patch)
treee88098f5af7cd96ca6136421d5f2f84f78c8b9bd /dummyresource/facade.cpp
parent9c7fcfacbba250d8776e520c92b2c33e43bc87ef (diff)
downloadsink-82d5893b117d4f930a1ccfba40a8811a56abbe09.tar.gz
sink-82d5893b117d4f930a1ccfba40a8811a56abbe09.zip
Some more CreateVector => appendAsVector transformations.
Diffstat (limited to 'dummyresource/facade.cpp')
-rw-r--r--dummyresource/facade.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dummyresource/facade.cpp b/dummyresource/facade.cpp
index 949b4c4..4b7cd53 100644
--- a/dummyresource/facade.cpp
+++ b/dummyresource/facade.cpp
@@ -56,7 +56,7 @@ Async::Job<void> DummyResourceFacade::create(const Akonadi2::Domain::Event &doma
56 flatbuffers::FlatBufferBuilder fbb; 56 flatbuffers::FlatBufferBuilder fbb;
57 //This is the resource buffer type and not the domain type 57 //This is the resource buffer type and not the domain type
58 auto type = fbb.CreateString("event"); 58 auto type = fbb.CreateString("event");
59 auto delta = fbb.CreateVector<uint8_t>(entityFbb.GetBufferPointer(), entityFbb.GetSize()); 59 auto delta = Akonadi2::EntityBuffer::appendAsVector(fbb, entityFbb.GetBufferPointer(), entityFbb.GetSize());
60 auto location = Akonadi2::Commands::CreateCreateEntity(fbb, type, delta); 60 auto location = Akonadi2::Commands::CreateCreateEntity(fbb, type, delta);
61 Akonadi2::Commands::FinishCreateEntityBuffer(fbb, location); 61 Akonadi2::Commands::FinishCreateEntityBuffer(fbb, location);
62 mResourceAccess->open(); 62 mResourceAccess->open();