Skip to content

Commit

Permalink
Merge pull request dolphin-emu#8699 from howard0su/cleanup_move
Browse files Browse the repository at this point in the history
Cleanup warnings of -Wpessimizing-move
  • Loading branch information
JosJuice authored Mar 23, 2020
2 parents a6d1fe5 + 964a2e1 commit aee9c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/DolphinQt/Config/LogWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aee9c73

Please sign in to comment.