Skip to content

Commit

Permalink
Add some constness.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 25, 2024
1 parent 18d023e commit 038cc45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ bool doublesAreEqual(double left, double right)

std::pair<int, int> getStartingAnglesInfinite(int progressCounter)
{
int firstAngle{static_cast<int>(
const int firstAngle{static_cast<int>(
std::lround(progressCounter * HUNDREDTH_OF_FULL_CIRCLE * FULL_DEGREE))};
int secondAngle{static_cast<int>(std::lround(
const int secondAngle{static_cast<int>(std::lround(
(HALF_CIRCLE_ANGLE + (progressCounter * HUNDREDTH_OF_FULL_CIRCLE)) *
FULL_DEGREE))};
return {firstAngle, secondAngle};
Expand Down

0 comments on commit 038cc45

Please sign in to comment.