From 5cabc167e646e9d80b70d6617a3f031d77453979 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 23 Jun 2017 10:20:03 +0200 Subject: 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). --- common/bufferutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/bufferutils.h') 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> modifiedPropertiesList; for (const auto &change : list) { - auto s = fbb.CreateString(change); + auto s = fbb.CreateString(change.toStdString()); modifiedPropertiesList.push_back(s); } return fbb.CreateVector(modifiedPropertiesList); -- cgit v1.2.3