diff --git a/src/libs/clangbackendipc/sourcefilepathcontainerbase.h b/src/libs/clangbackendipc/sourcefilepathcontainerbase.h index ec5b78e9a7b..ebf717f15e6 100644 --- a/src/libs/clangbackendipc/sourcefilepathcontainerbase.h +++ b/src/libs/clangbackendipc/sourcefilepathcontainerbase.h @@ -45,7 +45,7 @@ public: void insertFilePath(uint fileId, Utils::PathString &&filePath) { if (m_filePathHash.find(fileId) == m_filePathHash.end()) - m_filePathHash.emplace(fileId, std::move(filePath)); + m_filePathHash.emplace(fileId, FilePath(std::move(filePath))); } void reserve(std::size_t size)