Range-ify usages of front-end Arrays

This commit is contained in:
Martin 2017-06-02 20:43:25 +02:00
parent 9fd7fa2d90
commit 383c2d3a59
14 changed files with 46 additions and 46 deletions

View file

@ -404,8 +404,8 @@ void parseCommandLine(int argc, char **argv, Strings &sourceFiles,
const auto toWinPaths = [](Strings *paths) {
if (!paths)
return;
for (unsigned i = 0; i < paths->dim; ++i)
(*paths)[i] = dupPathString((*paths)[i]);
for (auto &path : *paths)
path = dupPathString(path);
};
toWinPaths(global.params.imppath);
toWinPaths(global.params.fileImppath);