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 6, 2025
1 parent 54be446 commit 0672a19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ class error_s
}

private:
error_s(error_code code, std::string_view msg) noexcept : _info(new error_info(code, msg)) {}
error_s(error_code code, std::string_view msg) noexcept
: _info(std::make_unique<error_info>(code, msg))
{
}

struct error_info
{
Expand Down

0 comments on commit 0672a19

Please sign in to comment.