Skip to content

Commit

Permalink
Add more const correctness to please clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jeaye committed May 3, 2024
1 parent a717017 commit 9459f95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/cpp/jank/runtime/obj/cons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace jank::runtime

/* behavior::objectable */
native_bool equal(object const &) const;
native_persistent_string to_string();
void to_string(fmt::memory_buffer &buff);
native_persistent_string to_string() const;
void to_string(fmt::memory_buffer &buff) const;
native_hash to_hash() const;

/* behavior::metadatable */
Expand Down
4 changes: 2 additions & 2 deletions src/cpp/jank/runtime/obj/cons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ namespace jank::runtime
&o);
}

void obj::cons::to_string(fmt::memory_buffer &buff)
void obj::cons::to_string(fmt::memory_buffer &buff) const
{
runtime::detail::to_string(seq(), buff);
}

native_persistent_string obj::cons::to_string()
native_persistent_string obj::cons::to_string() const
{
return runtime::detail::to_string(seq());
}
Expand Down

0 comments on commit 9459f95

Please sign in to comment.