Use reference whenever possible

This commit is contained in:
Chocobo1
2023-05-05 02:50:19 +08:00
parent 5b43782f58
commit 8c9b6e2f2d
12 changed files with 13 additions and 13 deletions

View File

@@ -1632,7 +1632,7 @@ void TorrentImpl::endReceivedMetadataHandling(const Path &savePath, const PathLi
{
const auto nativeIndex = nativeIndexes.at(i);
const Path actualFilePath = fileNames.at(i);
const Path &actualFilePath = fileNames.at(i);
p.renamed_files[nativeIndex] = actualFilePath.toString().toStdString();
const Path filePath = actualFilePath.removedExtension(QB_EXT);