From 964a2e1e7079058dd920c558d4afcaa1ded342bd Mon Sep 17 00:00:00 2001 From: Jun Su Date: Mon, 23 Mar 2020 16:31:01 +0800 Subject: [PATCH] Cleanup warnings of -Wpessimizing-move moving a temporary object prevents copy elision. Remove std::move. --- Source/Core/DolphinQt/Config/LogWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Config/LogWidget.cpp b/Source/Core/DolphinQt/Config/LogWidget.cpp index a3ad85a087..e21ac34043 100644 --- a/Source/Core/DolphinQt/Config/LogWidget.cpp +++ b/Source/Core/DolphinQt/Config/LogWidget.cpp @@ -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)