const-ify QTessellatorPrivate::EdgeSorter::operator()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-11-21 06:44:08 +02:00
parent 3828d29c02
commit a49dab66f1

View file

@ -110,7 +110,7 @@ public:
{
public:
EdgeSorter(int _y) : y(_y) {}
bool operator() (const Edge *e1, const Edge *e2);
bool operator() (const Edge *e1, const Edge *e2) const;
int y;
};
@ -363,7 +363,7 @@ Q27Dot5 QTessellatorPrivate::Edge::positionAt(Q27Dot5 y) const
return (v0->x + d*(y - v0->y)/(v1->y-v0->y));
}
bool QTessellatorPrivate::EdgeSorter::operator() (const Edge *e1, const Edge *e2)
bool QTessellatorPrivate::EdgeSorter::operator() (const Edge *e1, const Edge *e2) const
{
return e1->isLeftOf(*e2, y);
}