diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-09-04 13:47:27 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-09-04 13:47:27 +0200 |
commit | 19f3b3c0b38cb8a92da77e60491027b7c9b48a16 (patch) | |
tree | 489d6fc0c5b1fa443c8260f51042583b83bdf363 | |
parent | 64bba04624b08ace6028d8f3408335a9c2bae10e (diff) | |
download | sink-19f3b3c0b38cb8a92da77e60491027b7c9b48a16.tar.gz sink-19f3b3c0b38cb8a92da77e60491027b7c9b48a16.zip |
make it compile
-rw-r--r-- | common/domainadaptor.h | 2 | ||||
-rw-r--r-- | common/entitybuffer.h | 2 | ||||
-rw-r--r-- | tests/domainadaptortest.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/common/domainadaptor.h b/common/domainadaptor.h index e0912e4..16fc8c2 100644 --- a/common/domainadaptor.h +++ b/common/domainadaptor.h | |||
@@ -78,7 +78,7 @@ static void createBufferPartBuffer(const Sink::ApplicationDomain::ApplicationDom | |||
78 | // FIXME: This means all buffers in here must have the AKFB identifier | 78 | // FIXME: This means all buffers in here must have the AKFB identifier |
79 | fbb.Finish(pos, "AKFB"); | 79 | fbb.Finish(pos, "AKFB"); |
80 | flatbuffers::Verifier verifier(fbb.GetBufferPointer(), fbb.GetSize()); | 80 | flatbuffers::Verifier verifier(fbb.GetBufferPointer(), fbb.GetSize()); |
81 | if (!verifier.VerifyBuffer<Buffer>()) { | 81 | if (!verifier.VerifyBuffer<Buffer>(nullptr)) { |
82 | SinkWarning_(0, "bufferadaptor") << "Created invalid uffer"; | 82 | SinkWarning_(0, "bufferadaptor") << "Created invalid uffer"; |
83 | } | 83 | } |
84 | } | 84 | } |
diff --git a/common/entitybuffer.h b/common/entitybuffer.h index 24f0b6b..866a7d0 100644 --- a/common/entitybuffer.h +++ b/common/entitybuffer.h | |||
@@ -33,7 +33,7 @@ public: | |||
33 | static const T *readBuffer(const uint8_t *data, int size) | 33 | static const T *readBuffer(const uint8_t *data, int size) |
34 | { | 34 | { |
35 | flatbuffers::Verifier verifier(data, size); | 35 | flatbuffers::Verifier verifier(data, size); |
36 | if (verifier.VerifyBuffer<T>()) { | 36 | if (verifier.VerifyBuffer<T>(nullptr)) { |
37 | return flatbuffers::GetRoot<T>(data); | 37 | return flatbuffers::GetRoot<T>(data); |
38 | } | 38 | } |
39 | return nullptr; | 39 | return nullptr; |
diff --git a/tests/domainadaptortest.cpp b/tests/domainadaptortest.cpp index ff75d21..f4ac008 100644 --- a/tests/domainadaptortest.cpp +++ b/tests/domainadaptortest.cpp | |||
@@ -49,7 +49,7 @@ private slots: | |||
49 | Sink::ApplicationDomain::Buffer::FinishEventBuffer(fbb, pos); | 49 | Sink::ApplicationDomain::Buffer::FinishEventBuffer(fbb, pos); |
50 | 50 | ||
51 | flatbuffers::Verifier verifier(fbb.GetBufferPointer(), fbb.GetSize()); | 51 | flatbuffers::Verifier verifier(fbb.GetBufferPointer(), fbb.GetSize()); |
52 | QVERIFY(verifier.VerifyBuffer<Sink::ApplicationDomain::Buffer::Event>()); | 52 | QVERIFY(verifier.VerifyBuffer<Sink::ApplicationDomain::Buffer::Event>(nullptr)); |
53 | } | 53 | } |
54 | 54 | ||
55 | void testAdaptor() | 55 | void testAdaptor() |