Skip to content

Commit 9673c1b

Browse files
committed
Fixed warning about move
1 parent 5dce654 commit 9673c1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/spdlog/details/err_helper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class SPDLOG_API err_helper {
1919
public:
2020
err_helper() = default;
2121
err_helper(const err_helper& other);
22-
err_helper(err_helper&& other);
22+
err_helper(err_helper&& other) noexcept;;
2323
void handle_ex(const std::string& origin, const source_loc& loc, const std::exception& ex) noexcept;
2424
void handle_unknown_ex(const std::string& origin, const source_loc& loc) noexcept;
2525
void set_err_handler(err_handler handler);

src/details/err_helper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ err_helper::err_helper(const err_helper &other)
1212
: custom_err_handler_(other.custom_err_handler_),
1313
last_report_time_(other.last_report_time_) {}
1414

15-
err_helper::err_helper(err_helper &&other)
15+
err_helper::err_helper(err_helper &&other) noexcept
1616
: custom_err_handler_(std::move(other.custom_err_handler_)),
1717
last_report_time_(other.last_report_time_) {}
1818

0 commit comments

Comments
 (0)