Avoid some copies by using const references.
clang-tidy's performance-unnecessary-copy-initialization with some manual fixes. No functional changes intended. llvm-svn: 270988
This commit is contained in:
@@ -158,7 +158,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
// Expand any .dSYM bundles to the individual object files contained therein.
|
||||
std::vector<std::string> Objects;
|
||||
for (auto F : InputFilenames) {
|
||||
for (const auto &F : InputFilenames) {
|
||||
auto Objs = expandBundle(F);
|
||||
Objects.insert(Objects.end(), Objs.begin(), Objs.end());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user