mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
Fixed some more clang-tidy warnings
This commit is contained in:
parent
93008b2369
commit
bff85725d2
@ -42,9 +42,9 @@ SPDLOG_INLINE log_msg_buffer &log_msg_buffer::operator=(const log_msg_buffer &ot
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
SPDLOG_INLINE log_msg_buffer &log_msg_buffer::operator=(log_msg_buffer &&other)
|
SPDLOG_INLINE log_msg_buffer &log_msg_buffer::operator=(log_msg_buffer &&other) SPDLOG_NOEXCEPT
|
||||||
{
|
{
|
||||||
log_msg::operator=(std::move(other));
|
log_msg::operator=(other);
|
||||||
buffer = std::move(other.buffer);
|
buffer = std::move(other.buffer);
|
||||||
update_string_views();
|
update_string_views();
|
||||||
return *this;
|
return *this;
|
||||||
|
@ -22,7 +22,7 @@ public:
|
|||||||
log_msg_buffer(const log_msg_buffer &other);
|
log_msg_buffer(const log_msg_buffer &other);
|
||||||
log_msg_buffer(log_msg_buffer &&other) SPDLOG_NOEXCEPT;
|
log_msg_buffer(log_msg_buffer &&other) SPDLOG_NOEXCEPT;
|
||||||
log_msg_buffer &operator=(const log_msg_buffer &other);
|
log_msg_buffer &operator=(const log_msg_buffer &other);
|
||||||
log_msg_buffer &operator=(log_msg_buffer &&other);
|
log_msg_buffer &operator=(log_msg_buffer &&other) SPDLOG_NOEXCEPT;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace details
|
} // namespace details
|
||||||
|
@ -876,7 +876,7 @@ public:
|
|||||||
fmt_helper::pad6(static_cast<size_t>(delta_units.count()), dest);
|
fmt_helper::pad6(static_cast<size_t>(delta_units.count()), dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
log_clock::time_point last_message_time_;
|
log_clock::time_point last_message_time_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ SPDLOG_INLINE std::vector<sink_ptr> &logger::sinks()
|
|||||||
// error handler
|
// error handler
|
||||||
SPDLOG_INLINE void logger::set_error_handler(err_handler handler)
|
SPDLOG_INLINE void logger::set_error_handler(err_handler handler)
|
||||||
{
|
{
|
||||||
custom_err_handler_ = handler;
|
custom_err_handler_ = std::move(handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
// create new logger with same sinks and configuration.
|
// create new logger with same sinks and configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user