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
|
@ -18,8 +18,7 @@
|
||||||
#include "Core/PowerPC/SignatureDB/DSYSignatureDB.h"
|
#include "Core/PowerPC/SignatureDB/DSYSignatureDB.h"
|
||||||
#include "Core/PowerPC/SignatureDB/MEGASignatureDB.h"
|
#include "Core/PowerPC/SignatureDB/MEGASignatureDB.h"
|
||||||
|
|
||||||
SignatureDB::SignatureDB(SignatureDB::HandlerType handler)
|
SignatureDB::SignatureDB(SignatureDB::HandlerType handler) : m_handler(CreateFormatHandler(handler))
|
||||||
: m_handler(std::move(CreateFormatHandler(handler)))
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue