summaryrefslogtreecommitdiffstats
path: root/common/entitybuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/entitybuffer.cpp')
-rw-r--r--common/entitybuffer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/entitybuffer.cpp b/common/entitybuffer.cpp
index 33a52fd..c14c86d 100644
--- a/common/entitybuffer.cpp
+++ b/common/entitybuffer.cpp
@@ -6,7 +6,7 @@
6 6
7using namespace Akonadi2; 7using namespace Akonadi2;
8 8
9EntityBuffer::EntityBuffer(void *dataValue, int dataSize) 9EntityBuffer::EntityBuffer(const void *dataValue, int dataSize)
10 : mEntity(nullptr) 10 : mEntity(nullptr)
11{ 11{
12 flatbuffers::Verifier verifyer(reinterpret_cast<const uint8_t *>(dataValue), dataSize); 12 flatbuffers::Verifier verifyer(reinterpret_cast<const uint8_t *>(dataValue), dataSize);
@@ -18,6 +18,11 @@ EntityBuffer::EntityBuffer(void *dataValue, int dataSize)
18 } 18 }
19} 19}
20 20
21bool EntityBuffer::isValid() const
22{
23 return mEntity;
24}
25
21const Akonadi2::Entity &EntityBuffer::entity() 26const Akonadi2::Entity &EntityBuffer::entity()
22{ 27{
23 return *mEntity; 28 return *mEntity;