Fixed warning about move

This commit is contained in:
gabime 2025-01-17 17:01:57 +02:00
parent 5dce654473
commit 9673c1ba09
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class SPDLOG_API err_helper {
public:
err_helper() = default;
err_helper(const err_helper& other);
err_helper(err_helper&& other);
err_helper(err_helper&& other) noexcept;;
void handle_ex(const std::string& origin, const source_loc& loc, const std::exception& ex) noexcept;
void handle_unknown_ex(const std::string& origin, const source_loc& loc) noexcept;
void set_err_handler(err_handler handler);

View File

@ -12,7 +12,7 @@ err_helper::err_helper(const err_helper &other)
: custom_err_handler_(other.custom_err_handler_),
last_report_time_(other.last_report_time_) {}
err_helper::err_helper(err_helper &&other)
err_helper::err_helper(err_helper &&other) noexcept
: custom_err_handler_(std::move(other.custom_err_handler_)),
last_report_time_(other.last_report_time_) {}