diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-23 10:20:03 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-23 10:20:03 +0200 |
commit | 5cabc167e646e9d80b70d6617a3f031d77453979 (patch) | |
tree | c95e00cb8002f429fc7040da85fdeb91c2b35728 /common/bufferutils.h | |
parent | 69954149a432f7a77f2613e348a2089bf5bb2012 (diff) | |
download | sink-5cabc167e646e9d80b70d6617a3f031d77453979.tar.gz sink-5cabc167e646e9d80b70d6617a3f031d77453979.zip |
Build with flatbuffers 1.7
There's a new template version that expects methods that QByteArray
doesn't have but breaks the implicit conversion to const char *,
std::string is safer anyways (doesn't require a null terminated string).
Diffstat (limited to 'common/bufferutils.h')
-rw-r--r-- | common/bufferutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/bufferutils.h b/common/bufferutils.h index 6763ced..f0460b7 100644 --- a/common/bufferutils.h +++ b/common/bufferutils.h | |||
@@ -38,7 +38,7 @@ static flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers:: | |||
38 | { | 38 | { |
39 | std::vector<flatbuffers::Offset<flatbuffers::String>> modifiedPropertiesList; | 39 | std::vector<flatbuffers::Offset<flatbuffers::String>> modifiedPropertiesList; |
40 | for (const auto &change : list) { | 40 | for (const auto &change : list) { |
41 | auto s = fbb.CreateString(change); | 41 | auto s = fbb.CreateString(change.toStdString()); |
42 | modifiedPropertiesList.push_back(s); | 42 | modifiedPropertiesList.push_back(s); |
43 | } | 43 | } |
44 | return fbb.CreateVector(modifiedPropertiesList); | 44 | return fbb.CreateVector(modifiedPropertiesList); |