Add const to GuardGallivant.getStartDirectionIndex()

This commit is contained in:
Stefan Müller 2024-12-25 21:43:20 +01:00
parent 1fd73c1a18
commit 2e2a95faef
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class GuardGallivant
Point2 start_{}; Point2 start_{};
void visitPosition(const Point2& current); void visitPosition(const Point2& current);
size_t turnDirection(const size_t current) const; size_t turnDirection(const size_t current) const;
size_t getStartDirectionIndex() const; const size_t getStartDirectionIndex() const;
const char getStartChar() const; const char getStartChar() const;
const char getVisitedChar() const; const char getVisitedChar() const;
const char getObstructionChar() const; const char getObstructionChar() const;

View File

@ -70,7 +70,7 @@ size_t GuardGallivant::turnDirection(const size_t current) const
return current == 0 ? 3 : current - 1; return current == 0 ? 3 : current - 1;
} }
size_t GuardGallivant::getStartDirectionIndex() const const size_t GuardGallivant::getStartDirectionIndex() const
{ {
return 2; return 2;
} }