QPathEdge: Fix array initialization
We had a copy-paste error there: not all array members were initialized. Pointed out by PVS-Studio static analysis tool: https://habr.com/ru/company/pvs-studio/blog/542760 Co-Authored-By: Marc Mutz <marc.mutz@qt.io> Pick-to: 6.3 6.2 5.15 Change-Id: I06a4f2cd928846eab6330af014981fd0a3170ba0 Reviewed-by: Marc Mutz <marc.mutz@qt.io>bb10
parent
fc738e3f51
commit
3215416e3c
|
|
@ -156,7 +156,7 @@ public:
|
|||
int vertex(Direction direction) const;
|
||||
|
||||
private:
|
||||
int m_next[2][2];
|
||||
int m_next[2][2] = { { -1, -1 }, { -1, -1 } };
|
||||
};
|
||||
|
||||
class QPathSegments
|
||||
|
|
@ -296,10 +296,6 @@ inline QPathEdge::QPathEdge(int a, int b)
|
|||
, angle(0)
|
||||
, invAngle(0)
|
||||
{
|
||||
m_next[0][0] = -1;
|
||||
m_next[1][0] = -1;
|
||||
m_next[0][0] = -1;
|
||||
m_next[1][0] = -1;
|
||||
}
|
||||
|
||||
inline int QPathEdge::next(Traversal traversal, Direction direction) const
|
||||
|
|
|
|||
Loading…
Reference in New Issue