mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
const-ify QTessellatorPrivate::EdgeSorter::operator()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3828d29c02
commit
a49dab66f1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue