diff --git a/src/persistence/profile.cpp b/src/persistence/profile.cpp index 1d479e3d3..4c5c7af22 100644 --- a/src/persistence/profile.cpp +++ b/src/persistence/profile.cpp @@ -117,7 +117,7 @@ std::unique_ptr loadToxData(const QString& password, const QString& saveFile.close(); error = LoadToxDataError::OK; - return std::move(tmpKey); + return tmpKey; fail: saveFile.close(); return nullptr;