Skip to content

Commit

Permalink
Fix warning: suggest braces around initialization of subobject. (#2512)
Browse files Browse the repository at this point in the history
  • Loading branch information
connormanning authored and abellgithub committed May 12, 2019
1 parent c38c70d commit 9e8a65b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdal/Mesh.hpp
Expand Up @@ -55,8 +55,8 @@ class PDAL_DLL Triangle

inline bool operator == (const Triangle& a, const Triangle& b)
{
std::array<PointId, 3> aa {a.m_a, a.m_b, a.m_c};
std::array<PointId, 3> bb {b.m_a, b.m_b, b.m_c};
std::array<PointId, 3> aa { {a.m_a, a.m_b, a.m_c} };
std::array<PointId, 3> bb { {b.m_a, b.m_b, b.m_c} };
std::sort(aa.begin(), aa.end());
std::sort(bb.begin(), bb.end());
return aa == bb;
Expand Down

0 comments on commit 9e8a65b

Please sign in to comment.