mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-26 12:16:20 +00:00
SignatureDB: fix prevented copy elision
Clang warning: ``` Source/Core/Core/PowerPC/SignatureDB/SignatureDB.cpp:22:17: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] : m_handler(std::move(CreateFormatHandler(handler))) ^ Source/Core/Core/PowerPC/SignatureDB/SignatureDB.cpp:22:17: note: remove std::move call here : m_handler(std::move(CreateFormatHandler(handler))) ^~~~~~~~~~ ~ ```
This commit is contained in:
parent
ad829ec7a9
commit
89eb019788
1 changed files with 1 additions and 2 deletions
|
@ -18,8 +18,7 @@
|
|||
#include "Core/PowerPC/SignatureDB/DSYSignatureDB.h"
|
||||
#include "Core/PowerPC/SignatureDB/MEGASignatureDB.h"
|
||||
|
||||
SignatureDB::SignatureDB(SignatureDB::HandlerType handler)
|
||||
: m_handler(std::move(CreateFormatHandler(handler)))
|
||||
SignatureDB::SignatureDB(SignatureDB::HandlerType handler) : m_handler(CreateFormatHandler(handler))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue