forked from qt-creator/qt-creator
Clang: Fix compiler warning
"warning: local variable 'filePaths' will be copied despite being returned by name [-Wreturn-std-move]" "note: call 'std::move' explicitly to avoid copying" Change-Id: Ib34fcae4401b65a6d5c4bb2fb79bbf12c1e84f35 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -60,7 +60,7 @@ QStringList filterExistingFiles(QStringList &&filePaths)
|
||||
|
||||
filePaths.erase(startOfNonExistingFilePaths, filePaths.end());
|
||||
|
||||
return filePaths;
|
||||
return std::move(filePaths);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user