Skip to content

Commit

Permalink
Add missing const to flecs::string getters
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoyuppe committed Aug 5, 2023
1 parent 88bcbc3 commit cdf643a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/flecs/addons/cpp/utils/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct string {
return m_const_str;
}

std::size_t length() {
std::size_t length() const {
return static_cast<std::size_t>(m_length);
}

Expand All @@ -105,7 +105,7 @@ struct string {
return N - 1;
}

std::size_t size() {
std::size_t size() const {
return length();
}

Expand Down

0 comments on commit cdf643a

Please sign in to comment.