QOffsetStringArray: fix compilation error with clang-802.0.42
error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] return StaticString<N1 + N2>{ls[I1]..., rs.data[I2]...}; Change-Id: I30f5f50378f1faed648d092eefc5edb46e940239 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
2e02692ec2
commit
73bc1cf92f
@ -112,7 +112,7 @@ QT_WARNING_DISABLE_MSVC(4100) // The formal parameter is not referenced in the b
|
|||||||
static constexpr StaticString<N1 + N2> concatenate(
|
static constexpr StaticString<N1 + N2> concatenate(
|
||||||
const char (&ls)[N1], const StaticString<N2> &rs) noexcept
|
const char (&ls)[N1], const StaticString<N2> &rs) noexcept
|
||||||
{
|
{
|
||||||
return StaticString<N1 + N2>{ls[I1]..., rs.data[I2]...};
|
return StaticString<N1 + N2>{{ls[I1]..., rs.data[I2]...}};
|
||||||
}
|
}
|
||||||
QT_WARNING_POP
|
QT_WARNING_POP
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user