Skip to content

Commit

Permalink
fix clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan committed Jan 10, 2025
1 parent dbbb749 commit 44f885c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ class error_s
error_s(const error_s &rhs) noexcept { copy(rhs); }
error_s &operator=(const error_s &rhs) noexcept
{
if (this == &rhs) {
return *this;
}

copy(rhs);
return *this;
}
Expand All @@ -72,7 +76,7 @@ class error_s
error_s(error_s &&) noexcept = default;
error_s &operator=(error_s &&) noexcept = default;

static error_s make(error_code code, std::string_view reason) { return error_s(code, reason); }
static error_s make(error_code code, std::string_view reason) { return {code, reason}; }

static error_s make(error_code code)
{
Expand Down

0 comments on commit 44f885c

Please sign in to comment.