Optimze backtracer operator=

pull/1311/head
gabime 6 years ago
parent de2c07ac62
commit 255f7f2dee

@ -26,7 +26,7 @@ SPDLOG_INLINE backtracer &backtracer::operator=(backtracer other)
{ {
std::lock_guard<std::mutex> lock(mutex_); std::lock_guard<std::mutex> lock(mutex_);
enabled_ = other.enabled(); enabled_ = other.enabled();
messages_ = other.messages_; messages_ = std::move(other.messages_);
return *this; return *this;
} }

Loading…
Cancel
Save