diff options
Diffstat (limited to 'common/entitybuffer.cpp')
-rw-r--r-- | common/entitybuffer.cpp | 7 |
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 | ||
7 | using namespace Akonadi2; | 7 | using namespace Akonadi2; |
8 | 8 | ||
9 | EntityBuffer::EntityBuffer(void *dataValue, int dataSize) | 9 | EntityBuffer::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 | ||
21 | bool EntityBuffer::isValid() const | ||
22 | { | ||
23 | return mEntity; | ||
24 | } | ||
25 | |||
21 | const Akonadi2::Entity &EntityBuffer::entity() | 26 | const Akonadi2::Entity &EntityBuffer::entity() |
22 | { | 27 | { |
23 | return *mEntity; | 28 | return *mEntity; |