mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore(cleanup): don't std::move for return statement
std::moveing prevents RVO, and even in cases where RVO can't take place, move will be used if possible. Fix #6011
This commit is contained in:
parent
70824729ff
commit
f53e44b62c
|
@ -117,7 +117,7 @@ std::unique_ptr<ToxEncrypt> loadToxData(const QString& password, const QString&
|
||||||
|
|
||||||
saveFile.close();
|
saveFile.close();
|
||||||
error = LoadToxDataError::OK;
|
error = LoadToxDataError::OK;
|
||||||
return std::move(tmpKey);
|
return tmpKey;
|
||||||
fail:
|
fail:
|
||||||
saveFile.close();
|
saveFile.close();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user