refactor(Core/Misc): fabs() to std::fabs() (#9790)

- prefer std functions over C functions
This commit is contained in:
Kitzunu 2022-01-01 00:41:00 +01:00 committed by GitHub
parent ac99eb48e1
commit 913e65f97f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 43 additions and 43 deletions

View file

@ -62,7 +62,7 @@ struct ObjectPosSelector
if (nextUsedPos.second.sign * sign < 0) // last node from diff. list (-pi+alpha)
next_angle = 2 * M_PI - next_angle; // move to positive
return fabs(angle) + angle_step2 <= next_angle;
return std::fabs(angle) + angle_step2 <= next_angle;
}
bool CheckOriginal() const
@ -104,7 +104,7 @@ struct ObjectPosSelector
// next possible angle
angle = m_smallStepAngle[uptype] + m_anglestep * sign;
if (fabs(angle) > M_PI)
if (std::fabs(angle) > M_PI)
{
m_smallStepOk[uptype] = false;
return false;
@ -112,7 +112,7 @@ struct ObjectPosSelector
if (m_smallStepNextUsedPos[uptype])
{
if (fabs(angle) >= m_smallStepNextUsedPos[uptype]->first)
if (std::fabs(angle) >= m_smallStepNextUsedPos[uptype]->first)
{
m_smallStepOk[uptype] = false;
return false;