mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-26 08:04:25 +08:00
std::list::empty faster than std::list::size (for C++03)
This commit is contained in:
parent
dd5c5eb931
commit
c6ef26a457
@ -2588,7 +2588,7 @@ void Clipper::ProcessHorizontal(TEdge *horzEdge)
|
|||||||
|
|
||||||
MaximaList::const_iterator maxIt;
|
MaximaList::const_iterator maxIt;
|
||||||
MaximaList::const_reverse_iterator maxRit;
|
MaximaList::const_reverse_iterator maxRit;
|
||||||
if (m_Maxima.size() > 0)
|
if (!m_Maxima.empty())
|
||||||
{
|
{
|
||||||
//get the first maxima in range (X) ...
|
//get the first maxima in range (X) ...
|
||||||
if (dir == dLeftToRight)
|
if (dir == dLeftToRight)
|
||||||
@ -2620,7 +2620,7 @@ void Clipper::ProcessHorizontal(TEdge *horzEdge)
|
|||||||
//this code block inserts extra coords into horizontal edges (in output
|
//this code block inserts extra coords into horizontal edges (in output
|
||||||
//polygons) whereever maxima touch these horizontal edges. This helps
|
//polygons) whereever maxima touch these horizontal edges. This helps
|
||||||
//'simplifying' polygons (ie if the Simplify property is set).
|
//'simplifying' polygons (ie if the Simplify property is set).
|
||||||
if (m_Maxima.size() > 0)
|
if (!m_Maxima.empty())
|
||||||
{
|
{
|
||||||
if (dir == dLeftToRight)
|
if (dir == dLeftToRight)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user