diff options
Diffstat (limited to 'common/entitybuffer.cpp')
-rw-r--r-- | common/entitybuffer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/entitybuffer.cpp b/common/entitybuffer.cpp index 0e5435a..b4a5cb2 100644 --- a/common/entitybuffer.cpp +++ b/common/entitybuffer.cpp | |||
@@ -18,6 +18,12 @@ EntityBuffer::EntityBuffer(const void *dataValue, int dataSize) | |||
18 | } | 18 | } |
19 | } | 19 | } |
20 | 20 | ||
21 | EntityBuffer::EntityBuffer(const QByteArray &data) | ||
22 | : EntityBuffer(data.constData(), data.size()) | ||
23 | { | ||
24 | |||
25 | } | ||
26 | |||
21 | bool EntityBuffer::isValid() const | 27 | bool EntityBuffer::isValid() const |
22 | { | 28 | { |
23 | return mEntity; | 29 | return mEntity; |
@@ -25,6 +31,7 @@ bool EntityBuffer::isValid() const | |||
25 | 31 | ||
26 | const Sink::Entity &EntityBuffer::entity() | 32 | const Sink::Entity &EntityBuffer::entity() |
27 | { | 33 | { |
34 | Q_ASSERT(mEntity); | ||
28 | return *mEntity; | 35 | return *mEntity; |
29 | } | 36 | } |
30 | 37 | ||