diff options
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 d6008c4..6763ced 100644 --- a/common/bufferutils.h +++ b/common/bufferutils.h | |||
@@ -26,7 +26,7 @@ static QByteArray extractBuffer(const flatbuffers::FlatBufferBuilder &fbb) | |||
26 | static QList<QByteArray> fromVector(const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> &vector) | 26 | static QList<QByteArray> fromVector(const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> &vector) |
27 | { | 27 | { |
28 | QList<QByteArray> list; | 28 | QList<QByteArray> list; |
29 | for (const auto &data : vector) { | 29 | for (const flatbuffers::String *data : vector) { |
30 | Q_ASSERT(data); | 30 | Q_ASSERT(data); |
31 | list << QByteArray::fromStdString(data->str()); | 31 | list << QByteArray::fromStdString(data->str()); |
32 | } | 32 | } |