summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormogemimi <mogemimi@enginetrouble.net>2021-08-03 05:40:17 +0900
committerGitHub <noreply@github.com>2021-08-02 13:40:17 -0700
commit775c6567d187d5f56686254289c56a46a35eabf3 (patch)
treec2691bbb185efe48a1b87bad6bd5591815dd7b9f /include
parent97d9527f6cd1083a7d0d80ff38f56a723c1f4a0a (diff)
downloadflatbuffers-775c6567d187d5f56686254289c56a46a35eabf3.tar.gz
flatbuffers-775c6567d187d5f56686254289c56a46a35eabf3.tar.bz2
flatbuffers-775c6567d187d5f56686254289c56a46a35eabf3.zip
[C++] Fix compiler warning -Wredundant-parens in clang (#6761)
Diffstat (limited to 'include')
-rw-r--r--include/flatbuffers/flatbuffers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h
index 0f57f9b0..273d5091 100644
--- a/include/flatbuffers/flatbuffers.h
+++ b/include/flatbuffers/flatbuffers.h
@@ -1932,7 +1932,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);
auto structs = StartVectorOfStructs<T>(len);
for (size_t i = 0; i < len; i++) { structs[i] = pack_func(v[i]); }
@@ -2020,7 +2020,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);
}