CMakePM: clang-tidy fix for 'move-const-arg'

See https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-
tidy/checks/performance/move-const-arg.html

Change-Id: Ic20445321286fdcb8b02e1b2cf170e0fe60fd1fd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Cristian Adam
2023-10-20 15:05:12 +02:00
parent 55cccfa59e
commit aef415a25d
2 changed files with 4 additions and 4 deletions

View File

@@ -285,8 +285,8 @@ void FileApiReader::endState(const FilePath &replyFilePath, bool restoredFromBac
m_projectParts = std::move(value->projectParts);
m_rootProjectNode = std::move(value->rootProjectNode);
m_ctestPath = std::move(value->ctestPath);
m_isMultiConfig = std::move(value->isMultiConfig);
m_usesAllCapsTargets = std::move(value->usesAllCapsTargets);
m_isMultiConfig = value->isMultiConfig;
m_usesAllCapsTargets = value->usesAllCapsTargets;
if (value->errorMessage.isEmpty()) {
emit this->dataAvailable(restoredFromBackup);