diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-02 13:52:04 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-02 13:52:04 +0100 |
commit | 2e98a7f6eb11a071a8ac232bcbb37abea85f6f06 (patch) | |
tree | 30031cbca265656373c3ec24a39000451585102c /common/entitybuffer.cpp | |
parent | 7654452afc4fa81fe4fbb26347b58c6ba202dcc9 (diff) | |
download | sink-2e98a7f6eb11a071a8ac232bcbb37abea85f6f06.tar.gz sink-2e98a7f6eb11a071a8ac232bcbb37abea85f6f06.zip |
Cleaner EntityBuffer constructor
Diffstat (limited to 'common/entitybuffer.cpp')
-rw-r--r-- | common/entitybuffer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/entitybuffer.cpp b/common/entitybuffer.cpp index 344bccc..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; |