flatbuffers/0001-Fix-compiler-warning-Wredundant-parens.patch

23 lines
1020 B
Diff
Raw Normal View History

diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h
index ee34d54..aecf80f 100644
--- a/include/flatbuffers/flatbuffers.h
+++ b/include/flatbuffers/flatbuffers.h
@@ -1824,7 +1824,7 @@ class FlatBufferBuilder {
/// where the vector is stored.
template<typename T, typename S>
Offset<Vector<const T *>> CreateVectorOfNativeStructs(
- const S *v, size_t len, T((*const pack_func)(const S &))) {
+ const S *v, size_t len, T (*const pack_func)(const S &)) {
FLATBUFFERS_ASSERT(pack_func);
std::vector<T> vv(len);
std::transform(v, v + len, vv.begin(), pack_func);
@@ -1912,7 +1912,7 @@ class FlatBufferBuilder {
/// where the vector is stored.
template<typename T, typename S>
Offset<Vector<const T *>> CreateVectorOfNativeStructs(
- const std::vector<S> &v, T((*const pack_func)(const S &))) {
+ const std::vector<S> &v, T (*const pack_func)(const S &)) {
return CreateVectorOfNativeStructs<T, S>(data(v), v.size(), pack_func);
}