Optimze backtracer operator=

This commit is contained in:
gabime 2019-11-08 15:09:57 +02:00
parent de2c07ac62
commit 255f7f2dee

View File

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