Merge pull request #8699 from howard0su/cleanup_move

Cleanup warnings of -Wpessimizing-move
This commit is contained in:
JosJuice 2020-03-23 19:58:13 +01:00 committed by GitHub
commit aee9c7390d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ void LogWidget::UpdateLog()
elements_to_push.reserve(std::min(MAX_LOG_LINES_TO_UPDATE, m_log_ring_buffer.size()));
for (size_t i = 0; !m_log_ring_buffer.empty() && i < MAX_LOG_LINES_TO_UPDATE; i++)
elements_to_push.push_back(std::move(m_log_ring_buffer.pop_front()));
elements_to_push.push_back(m_log_ring_buffer.pop_front());
}
for (auto& line : elements_to_push)