summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJun Su <howard0su@gmail.com>2020-03-23 16:31:01 +0800
committerJun Su <howard0su@gmail.com>2020-03-23 16:31:15 +0800
commit964a2e1e7079058dd920c558d4afcaa1ded342bd (patch)
tree570d8625612f57b2d59966327810735559fb8922 /Source/Core
parent9ac28054df5fc69f7fb16c6ccf49123448b39926 (diff)
Cleanup warnings of -Wpessimizing-move
moving a temporary object prevents copy elision. Remove std::move.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/Config/LogWidget.cpp2
1 files changed, 1 insertions, 1 deletions
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)