mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07: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:
@@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user