mirror of
https://github.com/gabime/spdlog.git
synced 2025-03-01 03:35:50 +08:00
Fixed analyzer warnings
This commit is contained in:
parent
cfef4069b6
commit
63507e5de6
@ -34,6 +34,7 @@ async_log_msg::async_log_msg(async_log_msg &&other) noexcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
async_log_msg &async_log_msg::operator=(const async_log_msg &other) {
|
async_log_msg &async_log_msg::operator=(const async_log_msg &other) {
|
||||||
|
if (this == &other) return *this;
|
||||||
log_msg::operator=(other);
|
log_msg::operator=(other);
|
||||||
msg_type_ = other.msg_type_;
|
msg_type_ = other.msg_type_;
|
||||||
buffer_.clear();
|
buffer_.clear();
|
||||||
@ -43,6 +44,7 @@ async_log_msg &async_log_msg::operator=(const async_log_msg &other) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async_log_msg &async_log_msg::operator=(async_log_msg &&other) noexcept {
|
async_log_msg &async_log_msg::operator=(async_log_msg &&other) noexcept {
|
||||||
|
if (this == &other) return *this;
|
||||||
log_msg::operator=(other);
|
log_msg::operator=(other);
|
||||||
msg_type_ = other.msg_type_;
|
msg_type_ = other.msg_type_;
|
||||||
buffer_ = std::move(other.buffer_);
|
buffer_ = std::move(other.buffer_);
|
||||||
|
Loading…
Reference in New Issue
Block a user