Skip to content

Commit

Permalink
Sonarlint suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Dec 7, 2023
1 parent f273faf commit e99356d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,8 @@ namespace libassert::detail {
constexpr size_t where_indent = 8;

LIBASSERT_ATTR_COLD [[nodiscard]]
std::string print_binary_diagnostics(size_t term_width, binary_diagnostics_descriptor& diagnostics) {
auto& [ lstring, rstring, a_sstr, b_sstr, _ ] = diagnostics;
std::string print_binary_diagnostics(size_t term_width, const binary_diagnostics_descriptor& diagnostics) {
const auto& [ lstring, rstring, a_sstr, b_sstr, _ ] = diagnostics;
std::vector<std::string> lstrings = { lstring.str };
std::vector<std::string> rstrings = { rstring.str };
const std::string& a_str = a_sstr;
Expand Down

0 comments on commit e99356d

Please sign in to comment.